-Zunpretty=expanded
output with global_asm!
loses semicolon thus cannot be formatted
#101047
Labels
A-pretty
Area: Pretty printing (including `-Z unpretty`)
C-bug
Category: This is a bug.
requires-nightly
This issue requires a nightly compiler in some way.
Consider:
(Note: the
f
function is important to reproduce the issue, otherwise the output disappears: see #101051)RUSTC_BOOTSTRAP=1 rustc --edition=2021 --crate-type rlib -Zunpretty=expanded a.rs > a.rsi rustfmt --edition=2021 --check a.rsi
This generates a line like:
Which cannot be formatted because:
(It also loses the path to
global_asm!
, but that is not required for formatting)Meta
Reproduces in both stable (1.63.0) and nightly.
The text was updated successfully, but these errors were encountered: