about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2023-10-25 14:36:13 +1100
committerZalathar <Zalathar@users.noreply.github.com>2023-10-26 13:33:14 +1100
commit9f5fc0283cedc2cbae3727764b451098a7e98071 (patch)
tree6b466e9c151abfc2cdba14a0ea0bcbfb5096ff4d /compiler/rustc_interface/src
parent278eaf509d0871c5aa09b6b5fec9dc72226578e2 (diff)
downloadrust-9f5fc0283cedc2cbae3727764b451098a7e98071.tar.gz
rust-9f5fc0283cedc2cbae3727764b451098a7e98071.zip
The value of `-Cinstrument-coverage=` doesn't need to be `Option`
Not using this flag is identical to passing `-Cinstrument-coverage=off`, so
there's no need to distinguish between `None` and `Some(Off)`.
Diffstat (limited to 'compiler/rustc_interface/src')
-rw-r--r--compiler/rustc_interface/src/tests.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_interface/src/tests.rs b/compiler/rustc_interface/src/tests.rs
index 657bce7384b..d625a6b1a2c 100644
--- a/compiler/rustc_interface/src/tests.rs
+++ b/compiler/rustc_interface/src/tests.rs
@@ -612,7 +612,7 @@ fn test_codegen_options_tracking_hash() {
     tracked!(force_frame_pointers, Some(false));
     tracked!(force_unwind_tables, Some(true));
     tracked!(inline_threshold, Some(0xf007ba11));
-    tracked!(instrument_coverage, Some(InstrumentCoverage::All));
+    tracked!(instrument_coverage, InstrumentCoverage::All);
     tracked!(link_dead_code, Some(true));
     tracked!(linker_plugin_lto, LinkerPluginLto::LinkerPluginAuto);
     tracked!(llvm_args, vec![String::from("1"), String::from("2")]);