summaryrefslogtreecommitdiff
path: root/src/test/codegen/drop.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/codegen/drop.rs')
-rw-r--r--src/test/codegen/drop.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/codegen/drop.rs b/src/test/codegen/drop.rs
index 2ac8de6d802..83dd6a3b002 100644
--- a/src/test/codegen/drop.rs
+++ b/src/test/codegen/drop.rs
@@ -11,6 +11,7 @@
// compile-flags: -C no-prepopulate-passes
#![crate_type = "lib"]
+#![feature(rustc_attrs)]
struct SomeUniqueName;
@@ -24,6 +25,7 @@ pub fn possibly_unwinding() {
// CHECK-LABEL: @droppy
#[no_mangle]
+#[rustc_no_mir] // FIXME #27840 MIR has different codegen.
pub fn droppy() {
// Check that there are exactly 6 drop calls. The cleanups for the unwinding should be reused, so
// that's one new drop call per call to possibly_unwinding(), and finally 3 drop calls for the