diff options
| author | Nathan Nguyen <nathan.tm.nguyen@gmail.com> | 2021-02-18 05:25:45 -0600 |
|---|---|---|
| committer | Nathan Nguyen <nathan.tm.nguyen@gmail.com> | 2021-02-18 05:27:20 -0600 |
| commit | 8ddd846ce118e5f0bb423d310cb38c7f4a76890e (patch) | |
| tree | 59d7f590feaa24f1f4fe024f37924122cba3aa05 /compiler/rustc_interface/src | |
| parent | 93f6a4b9d85b7eef71e17d95c113f5834238b574 (diff) | |
| download | rust-8ddd846ce118e5f0bb423d310cb38c7f4a76890e.tar.gz rust-8ddd846ce118e5f0bb423d310cb38c7f4a76890e.zip | |
nhwn: make treat_err_as_bug Option<NonZeroUsize>
Diffstat (limited to 'compiler/rustc_interface/src')
| -rw-r--r-- | compiler/rustc_interface/src/tests.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_interface/src/tests.rs b/compiler/rustc_interface/src/tests.rs index f9c3406d3b3..a2e96146568 100644 --- a/compiler/rustc_interface/src/tests.rs +++ b/compiler/rustc_interface/src/tests.rs @@ -20,6 +20,7 @@ use rustc_target::spec::{CodeModel, LinkerFlavor, MergeFunctions, PanicStrategy} use rustc_target::spec::{RelocModel, RelroLevel, SplitDebuginfo, TlsModel}; use std::collections::{BTreeMap, BTreeSet}; use std::iter::FromIterator; +use std::num::NonZeroUsize; use std::path::{Path, PathBuf}; type CfgSpecs = FxHashSet<(String, Option<String>)>; @@ -595,7 +596,7 @@ fn test_debugging_options_tracking_hash() { tracked!(tune_cpu, Some(String::from("abc"))); tracked!(tls_model, Some(TlsModel::GeneralDynamic)); tracked!(trap_unreachable, Some(false)); - tracked!(treat_err_as_bug, Some(1)); + tracked!(treat_err_as_bug, NonZeroUsize::new(1)); tracked!(unleash_the_miri_inside_of_you, true); tracked!(use_ctors_section, Some(true)); tracked!(verify_llvm_ir, true); |
