-
Notifications
You must be signed in to change notification settings - Fork 14k
Open
Labels
A-prettyArea: Pretty printing (including `-Z unpretty`)Area: Pretty printing (including `-Z unpretty`)C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: 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.Relevant to the compiler team, which will review and decide on the PR/issue.requires-nightlyThis issue requires a nightly compiler in some way.This issue requires a nightly compiler in some way.
Description
fn main() { println!("hello world"); }rustc -Zunpretty=identified:
fn main() { println!("hello world"); } /* block 4294967040 */ /* 4294967040 */
Clearly it's useless if the NodeIds are all NodeId::MAX_AS_U32 (4294967040 aka -256_i32 as u32) (I think it may just have to be removed in favour of -Zunpretty=expanded,identified since the NodeIds are only assigned after macro expansion, and only correspond to elements of that AST, not the pre-expansion one).
Metadata
Metadata
Assignees
Labels
A-prettyArea: Pretty printing (including `-Z unpretty`)Area: Pretty printing (including `-Z unpretty`)C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: 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.Relevant to the compiler team, which will review and decide on the PR/issue.requires-nightlyThis issue requires a nightly compiler in some way.This issue requires a nightly compiler in some way.