Fix some comments.

- It's `--print`, not `--prints`.
- `-Ztime` and `-Ztime-passes` print to stderr, not stdout.
This commit is contained in:
Nicholas Nethercote 2022-10-06 14:13:12 +11:00
parent 0922559768
commit eea06de0c8
2 changed files with 6 additions and 6 deletions

View file

@ -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;
}