From fb7f1d220c28dd86000d52f846ceb9055ae0ace4 Mon Sep 17 00:00:00 2001 From: Erik Desjardins Date: Mon, 22 May 2023 20:20:45 -0400 Subject: [PATCH] drop-in-place-noalias test: needs -O to ensure attributes are added on nopt builders --- tests/codegen/drop-in-place-noalias.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/codegen/drop-in-place-noalias.rs b/tests/codegen/drop-in-place-noalias.rs index 74d40c13c4c..725e6fc048d 100644 --- a/tests/codegen/drop-in-place-noalias.rs +++ b/tests/codegen/drop-in-place-noalias.rs @@ -1,4 +1,4 @@ -// compile-flags: -C no-prepopulate-passes +// compile-flags: -O -C no-prepopulate-passes // Tests that the compiler can apply `noalias` and other &mut attributes to `drop_in_place`. // Note that non-Unpin types should not get `noalias`, matching &mut behavior.