diff options
| author | Aaron Hill <aa1ronham@gmail.com> | 2021-02-25 16:06:16 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-25 16:06:16 -0500 |
| commit | 8c0119da775280a55749b868fed573f2ea59b54f (patch) | |
| tree | 4f6b85165f44fd6d2f90974ae9795487a605ad3a /compiler/rustc_interface/src | |
| parent | 98f8cce6db6c6c6660eeffee2b3903104e547ecf (diff) | |
| parent | dd3772e4f01a9cab1d967c1b80c9c7cbe6014592 (diff) | |
| download | rust-8c0119da775280a55749b868fed573f2ea59b54f.tar.gz rust-8c0119da775280a55749b868fed573f2ea59b54f.zip | |
Rollup merge of #82269 - LeSeulArtichaut:cleanup-ppmode, r=spastorino
Cleanup `PpMode` and friends This PR: - Separates `PpSourceMode` and `PpHirMode` to remove invalid states - Renames the variant to remove the redundant `Ppm` prefix - Adds basic documentation for the different pretty-print modes - Cleanups some code to make it more idiomatic Not sure if this is actually useful, but it looks cleaner to me.
Diffstat (limited to 'compiler/rustc_interface/src')
| -rw-r--r-- | compiler/rustc_interface/src/passes.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs index 6358855ac32..5217066bbef 100644 --- a/compiler/rustc_interface/src/passes.rs +++ b/compiler/rustc_interface/src/passes.rs @@ -350,7 +350,7 @@ fn configure_and_expand_inner<'a>( rustc_builtin_macros::test_harness::inject(&sess, &mut resolver, &mut krate) }); - if let Some(PpMode::PpmSource(PpSourceMode::PpmEveryBodyLoops)) = sess.opts.pretty { + if let Some(PpMode::Source(PpSourceMode::EveryBodyLoops)) = sess.opts.pretty { tracing::debug!("replacing bodies with loop {{}}"); util::ReplaceBodyWithLoop::new(&mut resolver).visit_crate(&mut krate); } |
