This is so unsettling.
This is so unsettling.
@rog_nineteen I wish it weren't! But in the parallel universe of Rust Analyzer macros…it compiles just fine:
https://github.com/rust-lang/rust-analyzer/blob/master/crates/rust-analyzer/src/config.rs
So basically this is a macro for generating a deserializable struct with default values, and the default values are provided in their serialized JSON form?