about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-08-31 18:42:49 +0000
committerbors <bors@rust-lang.org>2022-08-31 18:42:49 +0000
commit9243168fa5615ec8ebe9164c6bc2fdcccffd08b6 (patch)
tree524048518ab07c1d30afae12d2295b4b3b2a3cb4 /src
parent4fd4de7ea358ad6fc28c5780533ea8ccc09e1006 (diff)
parent7913edb5c736b7c7d0918d32133999dfd6692604 (diff)
downloadrust-9243168fa5615ec8ebe9164c6bc2fdcccffd08b6.tar.gz
rust-9243168fa5615ec8ebe9164c6bc2fdcccffd08b6.zip
Auto merge of #100085 - RalfJung:op-ty-len, r=oli-obk
interpret: use new OpTy::len for Len rvalue

This avoids a `force_allocation`.
Diffstat (limited to 'src')
-rw-r--r--src/tools/clippy/tests/ui/indexing_slicing_index.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/clippy/tests/ui/indexing_slicing_index.rs b/src/tools/clippy/tests/ui/indexing_slicing_index.rs
index 45a430edcb5..7ebf6ee993c 100644
--- a/src/tools/clippy/tests/ui/indexing_slicing_index.rs
+++ b/src/tools/clippy/tests/ui/indexing_slicing_index.rs
@@ -3,7 +3,7 @@
 // We also check the out_of_bounds_indexing lint here, because it lints similar things and
 // we want to avoid false positives.
 #![warn(clippy::out_of_bounds_indexing)]
-#![allow(const_err, clippy::no_effect, clippy::unnecessary_operation)]
+#![allow(const_err, unconditional_panic, clippy::no_effect, clippy::unnecessary_operation)]
 
 const ARR: [i32; 2] = [1, 2];
 const REF: &i32 = &ARR[idx()]; // Ok, should not produce stderr.