about summary refs log tree commit diff
path: root/src/test/ui/generator/conditional-drop.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/generator/conditional-drop.rs')
-rw-r--r--src/test/ui/generator/conditional-drop.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/ui/generator/conditional-drop.rs b/src/test/ui/generator/conditional-drop.rs
index 990d94e6efc..0927df86927 100644
--- a/src/test/ui/generator/conditional-drop.rs
+++ b/src/test/ui/generator/conditional-drop.rs
@@ -1,5 +1,8 @@
 // run-pass
 
+// revisions: default nomiropt
+//[nomiropt]compile-flags: -Z mir-opt-level=0
+
 #![feature(generators, generator_trait)]
 
 use std::ops::Generator;