Skip to content

Commit 5837518

Browse files
-Zunpretty=everybody_loops only works after expansion
1 parent 84ec823 commit 5837518

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/librustc_session/config.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -1954,9 +1954,11 @@ impl PpMode {
19541954
use PpMode::*;
19551955
use PpSourceMode::*;
19561956
match *self {
1957-
PpmSource(PpmNormal | PpmEveryBodyLoops | PpmIdentified) => false,
1957+
PpmSource(PpmNormal | PpmIdentified) => false,
19581958

1959-
PpmSource(PpmExpanded | PpmExpandedIdentified | PpmExpandedHygiene)
1959+
PpmSource(
1960+
PpmExpanded | PpmEveryBodyLoops | PpmExpandedIdentified | PpmExpandedHygiene,
1961+
)
19601962
| PpmHir(_)
19611963
| PpmHirTree(_)
19621964
| PpmMir

0 commit comments

Comments
 (0)