summaryrefslogtreecommitdiff
path: root/src/test/run-pass/issue-23338-ensure-param-drop-order.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass/issue-23338-ensure-param-drop-order.rs')
-rw-r--r--src/test/run-pass/issue-23338-ensure-param-drop-order.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/run-pass/issue-23338-ensure-param-drop-order.rs b/src/test/run-pass/issue-23338-ensure-param-drop-order.rs
index 507d482febf..73c52a0843c 100644
--- a/src/test/run-pass/issue-23338-ensure-param-drop-order.rs
+++ b/src/test/run-pass/issue-23338-ensure-param-drop-order.rs
@@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
+#![feature(rustc_attrs)]
+
// ignore-pretty : (#23623) problems when ending with // comments
// This test is ensuring that parameters are indeed dropped after
@@ -64,6 +66,7 @@ fn test<'a>(log: d::Log<'a>) {
d::println(&format!("result {}", result));
}
+#[rustc_no_mir] // FIXME #29855 MIR doesn't handle all drops correctly.
fn foo<'a>(da0: D<'a>, de1: D<'a>) -> D<'a> {
d::println("entered foo");
let de2 = de1.incr(); // creates D(de_2, 2)