about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2023-02-06 06:32:34 +0100
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2023-03-21 18:18:25 +0100
commitf60d2eb6c19751154a2c752d1c916420c0bb60e6 (patch)
tree33b21a24ce8fe672e284c4671080084a887f2162 /compiler/rustc_interface/src
parentb0dc15c61ba38ad86aa9d565f99189db4a91f4c4 (diff)
downloadrust-f60d2eb6c19751154a2c752d1c916420c0bb60e6.tar.gz
rust-f60d2eb6c19751154a2c752d1c916420c0bb60e6.zip
Add `-Z time-passes-format` to allow specifying a JSON output for `-Z time-passes`
Diffstat (limited to 'compiler/rustc_interface/src')
-rw-r--r--compiler/rustc_interface/src/tests.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_interface/src/tests.rs b/compiler/rustc_interface/src/tests.rs
index 014810dba9c..eb5990507fb 100644
--- a/compiler/rustc_interface/src/tests.rs
+++ b/compiler/rustc_interface/src/tests.rs
@@ -2,6 +2,7 @@
 use crate::interface::parse_cfgspecs;
 
 use rustc_data_structures::fx::FxHashSet;
+use rustc_data_structures::profiling::TimePassesFormat;
 use rustc_errors::{emitter::HumanReadableErrorType, registry, ColorConfig};
 use rustc_session::config::rustc_optgroups;
 use rustc_session::config::Input;
@@ -699,6 +700,7 @@ fn test_unstable_options_tracking_hash() {
     untracked!(threads, 99);
     untracked!(time_llvm_passes, true);
     untracked!(time_passes, true);
+    untracked!(time_passes_format, TimePassesFormat::Json);
     untracked!(trace_macros, true);
     untracked!(track_diagnostics, true);
     untracked!(trim_diagnostic_paths, false);