diff options
| author | Camelid <camelidcamel@gmail.com> | 2020-11-24 18:58:20 -0800 |
|---|---|---|
| committer | Camelid <camelidcamel@gmail.com> | 2020-11-24 20:08:54 -0800 |
| commit | c4caf5ad36ab1d501063e2e5af69daf7b7a3eb56 (patch) | |
| tree | ed0ee77505da56063b25520a7cd80577a37bf41f | |
| parent | 1c389ffeff814726dec325f0f2b0c99107df2673 (diff) | |
| download | rust-c4caf5ad36ab1d501063e2e5af69daf7b7a3eb56.tar.gz rust-c4caf5ad36ab1d501063e2e5af69daf7b7a3eb56.zip | |
TRACK '-Z polonius' flag
| -rw-r--r-- | compiler/rustc_interface/src/tests.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_session/src/options.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_interface/src/tests.rs b/compiler/rustc_interface/src/tests.rs index 92262050b8c..2273266a3ff 100644 --- a/compiler/rustc_interface/src/tests.rs +++ b/compiler/rustc_interface/src/tests.rs @@ -498,7 +498,6 @@ fn test_debugging_options_tracking_hash() { untracked!(no_parallel_llvm, true); untracked!(parse_only, true); untracked!(perf_stats, true); - untracked!(polonius, true); // `pre_link_arg` is omitted because it just forwards to `pre_link_args`. untracked!(pre_link_args, vec![String::from("abc"), String::from("def")]); untracked!(print_link_args, true); @@ -572,6 +571,7 @@ fn test_debugging_options_tracking_hash() { tracked!(osx_rpath_install_name, true); tracked!(panic_abort_tests, true); tracked!(plt, Some(true)); + tracked!(polonius, true); tracked!(precise_enum_drop_elaboration, false); tracked!(print_fuel, Some("abc".to_string())); tracked!(profile, true); diff --git a/compiler/rustc_session/src/options.rs b/compiler/rustc_session/src/options.rs index 731bbf029fa..b438be0696a 100644 --- a/compiler/rustc_session/src/options.rs +++ b/compiler/rustc_session/src/options.rs @@ -1008,7 +1008,7 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options, "whether to use the PLT when calling into shared libraries; only has effect for PIC code on systems with ELF binaries (default: PLT is disabled if full relro is enabled)"), - polonius: bool = (false, parse_bool, [UNTRACKED], + polonius: bool = (false, parse_bool, [TRACKED], "enable polonius-based borrow-checker (default: no)"), polymorphize: bool = (false, parse_bool, [TRACKED], "perform polymorphization analysis"), |
