about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/tests.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-01-05 12:34:00 +0000
committerbors <bors@rust-lang.org>2024-01-05 12:34:00 +0000
commit6bc08a725f888a06ea3c6844f3d0cc2d2ebc5142 (patch)
tree4f93fdaecda5d73047d62044e6d3ff75fcfcff79 /compiler/rustc_interface/src/tests.rs
parent8d39ec1825024f3014e1f847942ac5bbfcf055b0 (diff)
parent7832ebbd4ff090aced6e338ff92e1353bbe88f76 (diff)
downloadrust-6bc08a725f888a06ea3c6844f3d0cc2d2ebc5142.tar.gz
rust-6bc08a725f888a06ea3c6844f3d0cc2d2ebc5142.zip
Auto merge of #117673 - matthewjasper:thir-unsafeck-stabilization, r=cjgillot
Stabilize THIR unsafeck

- Removes `-Zthir-unsafeck`, stabilizing the behaviour of `-Zthir-unsafeck=on`.
- Removes MIR unsafeck.
- Union patterns are now unsafe unless the field is matched to a wildcard pattern.

Opening for a crater run in case we need a compatibility lint.
Diffstat (limited to 'compiler/rustc_interface/src/tests.rs')
-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 c4a1f3a0e51..75410db1e36 100644
--- a/compiler/rustc_interface/src/tests.rs
+++ b/compiler/rustc_interface/src/tests.rs
@@ -822,7 +822,7 @@ fn test_unstable_options_tracking_hash() {
     tracked!(stack_protector, StackProtector::All);
     tracked!(teach, true);
     tracked!(thinlto, Some(true));
-    tracked!(thir_unsafeck, true);
+    tracked!(thir_unsafeck, false);
     tracked!(tiny_const_eval_limit, true);
     tracked!(tls_model, Some(TlsModel::GeneralDynamic));
     tracked!(translate_remapped_path_to_local_path, false);