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