Currently, syntax extensions can generate code with DUMMY_SP in its AST. All compiler diagnostics from that code, and all stack backtraces generated by that code, are basically worthless.
That should not be possible. The lowered HIR should not have any DUMMY_SP.
cc @rust-lang/compiler
Currently, syntax extensions can generate code with
DUMMY_SPin its AST. All compiler diagnostics from that code, and all stack backtraces generated by that code, are basically worthless.That should not be possible. The lowered HIR should not have any DUMMY_SP.
cc @rust-lang/compiler