diff options
| author | Erik Desjardins <erikdesjardins@users.noreply.github.com> | 2023-05-22 20:20:45 -0400 |
|---|---|---|
| committer | Erik Desjardins <erikdesjardins@users.noreply.github.com> | 2023-05-22 20:20:45 -0400 |
| commit | fb7f1d220c28dd86000d52f846ceb9055ae0ace4 (patch) | |
| tree | 057d4b2bdba73f552699fee2e4b9d26b2c97093f | |
| parent | 340827af9bcc140cbf3273a4a7f7b2628584f7a1 (diff) | |
| download | rust-fb7f1d220c28dd86000d52f846ceb9055ae0ace4.tar.gz rust-fb7f1d220c28dd86000d52f846ceb9055ae0ace4.zip | |
drop-in-place-noalias test: needs -O to ensure attributes are added on nopt builders
| -rw-r--r-- | tests/codegen/drop-in-place-noalias.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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. |
