Skip to content

Verify that the AST does not have DUMMY_SP #35148

Open
@arielb1

Description

@arielb1

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)A-proc-macrosArea: Procedural macrosC-enhancementCategory: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions