about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2023-10-08 12:08:09 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2023-10-08 12:09:06 +0000
commit005ec2e51ce99c6dd5e88c273b3f9b273fdf3f41 (patch)
tree028eb17865de884e4c388411110bbcfc465cf7c5 /tests
parentab039f79b8a0cfea01fb8aa10860560b9689e4c6 (diff)
downloadrust-005ec2e51ce99c6dd5e88c273b3f9b273fdf3f41.tar.gz
rust-005ec2e51ce99c6dd5e88c273b3f9b273fdf3f41.zip
Do not run optimizations on trivial MIR.
Diffstat (limited to 'tests')
-rw-r--r--tests/ui/consts/issue-67696-const-prop-ice.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/consts/issue-67696-const-prop-ice.rs b/tests/ui/consts/issue-67696-const-prop-ice.rs
index ad52608b3f4..858035190ca 100644
--- a/tests/ui/consts/issue-67696-const-prop-ice.rs
+++ b/tests/ui/consts/issue-67696-const-prop-ice.rs
@@ -1,5 +1,5 @@
 // check-pass
-// compile-flags: --emit=mir,link
+// compile-flags: --emit=mir,link -Zmir-opt-level=4
 // Checks that we don't ICE due to attempting to run const prop
 // on a function with unsatisifable 'where' clauses