1
Fork 0

Test that non_default_option is not the default option

Otherwise the test is useless and does nothing. This caught 2 bugs in
the test suite.
This commit is contained in:
Joshua Nelson 2021-04-15 23:06:32 -04:00
parent ae54ee6507
commit fb7018b41e
3 changed files with 10 additions and 6 deletions

View file

@ -156,7 +156,7 @@ pub enum InstrumentCoverage {
Off,
}
#[derive(Clone, PartialEq, Hash)]
#[derive(Clone, PartialEq, Hash, Debug)]
pub enum LinkerPluginLto {
LinkerPlugin(PathBuf),
LinkerPluginAuto,
@ -172,7 +172,7 @@ impl LinkerPluginLto {
}
}
#[derive(Clone, PartialEq, Hash)]
#[derive(Clone, PartialEq, Hash, Debug)]
pub enum SwitchWithOptPath {
Enabled(Option<PathBuf>),
Disabled,
@ -778,7 +778,7 @@ pub enum CrateType {
impl_stable_hash_via_hash!(CrateType);
#[derive(Clone, Hash)]
#[derive(Clone, Hash, Debug, PartialEq, Eq)]
pub enum Passes {
Some(Vec<String>),
All,

View file

@ -1220,7 +1220,7 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
// - compiler/rustc_interface/src/tests.rs
}
#[derive(Clone, Hash)]
#[derive(Clone, Hash, PartialEq, Eq, Debug)]
pub enum WasiExecModel {
Command,
Reactor,