mirror of
https://github.com/rust-lang/rust
synced 2024-10-01 22:34:35 +00:00
drop-in-place-noalias test: needs -O to ensure attributes are added on nopt builders
This commit is contained in:
parent
340827af9b
commit
fb7f1d220c
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue