drop-in-place-noalias test: needs -O to ensure attributes are added on nopt builders

This commit is contained in:
Erik Desjardins 2023-05-22 20:20:45 -04:00
parent 340827af9b
commit fb7f1d220c

View File

@ -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.