diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-10-06 14:13:12 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-10-06 14:22:12 +1100 |
| commit | eea06de0c894921deab541ad03c5ab728d4c449b (patch) | |
| tree | 45950c61996b2166fe7d41b3b153856093a74142 /compiler/rustc_driver/src/lib.rs | |
| parent | 092255976862c1f0121bb4446acd38336a860c4f (diff) | |
| download | rust-eea06de0c894921deab541ad03c5ab728d4c449b.tar.gz rust-eea06de0c894921deab541ad03c5ab728d4c449b.zip | |
Fix some comments.
- It's `--print`, not `--prints`. - `-Ztime` and `-Ztime-passes` print to stderr, not stdout.
Diffstat (limited to 'compiler/rustc_driver/src/lib.rs')
| -rw-r--r-- | compiler/rustc_driver/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_driver/src/lib.rs b/compiler/rustc_driver/src/lib.rs index fcd49f5d015..97657767f56 100644 --- a/compiler/rustc_driver/src/lib.rs +++ b/compiler/rustc_driver/src/lib.rs @@ -128,8 +128,8 @@ pub struct TimePassesCallbacks { impl Callbacks for TimePassesCallbacks { fn config(&mut self, config: &mut interface::Config) { - // If a --prints=... option has been given, we don't print the "total" - // time because it will mess up the --prints output. See #64339. + // If a --print=... option has been given, we don't print the "total" + // time because it will mess up the --print output. See #64339. self.time_passes = config.opts.prints.is_empty() && config.opts.time_passes(); config.opts.trimmed_def_paths = TrimmedDefPaths::GoodPath; } |
