A shebang is displaced in HIR & expanded outputs #134643
Labels
A-pretty
Area: Pretty printing (including `-Z unpretty`)
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
After running
rustc -Zunpretty=hir test.rs
, I expected to see this happen:Instead, this happened:
A shebang should remain at the beginning of an output but instead is placed in-between. The same happens with
rustc -Zunpretty=expanded test.rs
.Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: