about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/tests.rs
diff options
context:
space:
mode:
authorDario Nieuwenhuis <dirbaio@dirbaio.net>2020-11-24 00:55:10 +0100
committerDario Nieuwenhuis <dirbaio@dirbaio.net>2020-11-24 01:08:27 +0100
commit7b62e09b0333e268e5546d52f2072eb340cec7ea (patch)
tree2fab58eba45ba6ec5ff68e5006b41c2fffe97f6d /compiler/rustc_interface/src/tests.rs
parentd9a105fdd46c926ae606777a46dd90e5b838f92f (diff)
downloadrust-7b62e09b0333e268e5546d52f2072eb340cec7ea.tar.gz
rust-7b62e09b0333e268e5546d52f2072eb340cec7ea.zip
Allow disabling TrapUnreachable via -Ztrap-unreachable=no
This is useful for embedded targets where small code size is desired.
For example, on my project (thumbv7em-none-eabi) this yields a 0.6% code size reduction.
Diffstat (limited to 'compiler/rustc_interface/src/tests.rs')
-rw-r--r--compiler/rustc_interface/src/tests.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_interface/src/tests.rs b/compiler/rustc_interface/src/tests.rs
index 1fc2d281e79..a47f21e47b5 100644
--- a/compiler/rustc_interface/src/tests.rs
+++ b/compiler/rustc_interface/src/tests.rs
@@ -592,6 +592,7 @@ fn test_debugging_options_tracking_hash() {
     tracked!(thinlto, Some(true));
     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!(unleash_the_miri_inside_of_you, true);
     tracked!(use_ctors_section, Some(true));