We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
-Ztime-passes
--prints=...
1 parent ca3766e commit bb22986Copy full SHA for bb22986
src/librustc_driver/lib.rs
@@ -132,8 +132,11 @@ pub struct TimePassesCallbacks {
132
133
impl Callbacks for TimePassesCallbacks {
134
fn config(&mut self, config: &mut interface::Config) {
135
+ // If a --prints=... option has been given, we don't print the "total"
136
+ // time because it will mess up the --prints output. See #64339.
137
self.time_passes =
- config.opts.debugging_opts.time_passes || config.opts.debugging_opts.time;
138
+ config.opts.prints.is_empty() &&
139
+ (config.opts.debugging_opts.time_passes || config.opts.debugging_opts.time);
140
}
141
142
0 commit comments