diff options
| author | Ralf Jung <post@ralfj.de> | 2024-08-21 22:30:16 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-09-15 09:51:34 +0200 |
| commit | 544a6a7df382fbe6ae13c05f4b2cfa251e448050 (patch) | |
| tree | 7d9fd034a0579ad011d099e521516d3901d24c21 /tests/ui/statics/mutable_memory_validation.rs | |
| parent | 9ad5728593c628e9e87a0fb9cb8e851c99784ad0 (diff) | |
| download | rust-544a6a7df382fbe6ae13c05f4b2cfa251e448050.tar.gz rust-544a6a7df382fbe6ae13c05f4b2cfa251e448050.zip | |
const_refs_to_cell: dont let mutable references sneak past the interior mutability check
Diffstat (limited to 'tests/ui/statics/mutable_memory_validation.rs')
| -rw-r--r-- | tests/ui/statics/mutable_memory_validation.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/statics/mutable_memory_validation.rs b/tests/ui/statics/mutable_memory_validation.rs index d16b787fef8..0dc42c37bed 100644 --- a/tests/ui/statics/mutable_memory_validation.rs +++ b/tests/ui/statics/mutable_memory_validation.rs @@ -4,7 +4,7 @@ //@ normalize-stderr-test: "(the raw bytes of the constant) \(size: [0-9]*, align: [0-9]*\)" -> "$1 (size: $$SIZE, align: $$ALIGN)" //@ normalize-stderr-test: "([0-9a-f][0-9a-f] |╾─*A(LLOC)?[0-9]+(\+[a-z0-9]+)?(<imm>)?─*╼ )+ *│.*" -> "HEX_DUMP" -#![feature(const_refs_to_static)] +#![feature(const_refs_to_static, const_refs_to_cell)] use std::cell::UnsafeCell; |
