diff options
| author | Hudson Ayers <hayers@stanford.edu> | 2021-10-15 08:58:28 -0700 |
|---|---|---|
| committer | Hudson Ayers <hayers@stanford.edu> | 2021-10-21 10:44:22 -0700 |
| commit | b802629311ee9873978e91f185657fd6ae3cba28 (patch) | |
| tree | 0025c675f3bb1e96d7a2d2fa3cc608d5e0cf2cad /compiler/rustc_interface/src | |
| parent | 8090f67fb7abc459b24eaa87a5309ed49ed96866 (diff) | |
| download | rust-b802629311ee9873978e91f185657fd6ae3cba28.tar.gz rust-b802629311ee9873978e91f185657fd6ae3cba28.zip | |
add tests for -Zlocation-detail
Diffstat (limited to 'compiler/rustc_interface/src')
| -rw-r--r-- | compiler/rustc_interface/src/tests.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/rustc_interface/src/tests.rs b/compiler/rustc_interface/src/tests.rs index 844e5ab56a4..dab4d485e2d 100644 --- a/compiler/rustc_interface/src/tests.rs +++ b/compiler/rustc_interface/src/tests.rs @@ -5,7 +5,9 @@ use rustc_errors::{emitter::HumanReadableErrorType, registry, ColorConfig}; use rustc_session::config::InstrumentCoverage; use rustc_session::config::Strip; use rustc_session::config::{build_configuration, build_session_options, to_crate_config}; -use rustc_session::config::{rustc_optgroups, ErrorOutputType, ExternLocation, Options, Passes}; +use rustc_session::config::{ + rustc_optgroups, ErrorOutputType, ExternLocation, LocationDetail, Options, Passes, +}; use rustc_session::config::{CFGuard, ExternEntry, LinkerPluginLto, LtoCli, SwitchWithOptPath}; use rustc_session::config::{ Externs, OutputType, OutputTypes, SymbolManglingVersion, WasiExecModel, @@ -733,6 +735,7 @@ fn test_debugging_options_tracking_hash() { tracked!(instrument_mcount, true); tracked!(link_only, true); tracked!(llvm_plugins, vec![String::from("plugin_name")]); + tracked!(location_detail, LocationDetail { file: true, line: false, column: false }); tracked!(merge_functions, Some(MergeFunctions::Disabled)); tracked!(mir_emit_retag, true); tracked!(mir_opt_level, Some(4)); |
