about summary refs log tree commit diff
path: root/tests/ui
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-07-02 07:43:36 +0000
committerbors <bors@rust-lang.org>2023-07-02 07:43:36 +0000
commitbb33e0343fe37815f6180a861619a9fca6771ce9 (patch)
tree1bf525446e1fbf7787f39bb60ba289b81c965f8e /tests/ui
parent2ac2dc1cfa136df6367c18596704cf268f856dcc (diff)
parent7bd8ab77e5c84f783760cecb3b9ead277d8c7e60 (diff)
downloadrust-bb33e0343fe37815f6180a861619a9fca6771ce9.tar.gz
rust-bb33e0343fe37815f6180a861619a9fca6771ce9.zip
Auto merge of #112718 - oli-obk:SIMD-destructure_mir_const, r=cjgillot
Make simd_shuffle_indices use valtrees

This removes the second-to-last user of the `destructure_mir_constant` query. So in a follow-up we can remove the query and just move the query provider function directly into pretty printing (which is the last user).

cc `@rust-lang/clippy` there's a small functional change, but I think it is correct?
Diffstat (limited to 'tests/ui')
-rw-r--r--tests/ui/crashes/ice-9445.stderr12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/crashes/ice-9445.stderr b/tests/ui/crashes/ice-9445.stderr
new file mode 100644
index 00000000000..a59d098e5ac
--- /dev/null
+++ b/tests/ui/crashes/ice-9445.stderr
@@ -0,0 +1,12 @@
+error: a `const` item should never be interior mutable
+  --> $DIR/ice-9445.rs:1:1
+   |
+LL | const UNINIT: core::mem::MaybeUninit<core::cell::Cell<&'static ()>> = core::mem::MaybeUninit::uninit();
+   | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+   | |
+   | make this a static item (maybe with lazy_static)
+   |
+   = note: `-D clippy::declare-interior-mutable-const` implied by `-D warnings`
+
+error: aborting due to previous error
+