about summary refs log tree commit diff
path: root/src/tools/clippy/clippy_lints
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-10-07 20:50:51 +0000
committerbors <bors@rust-lang.org>2022-10-07 20:50:51 +0000
commit8b0c05d9ad7121cdb97600f261bcd5f04c8db20d (patch)
tree900208291d86b42fe0189eea1d121f418c14a278 /src/tools/clippy/clippy_lints
parent2d3a85b4f8ba7e2554f4d4fee126bc2ac6ee2af4 (diff)
parentfd59d44f5880fea109fe68e31fab2486cd686fc6 (diff)
downloadrust-8b0c05d9ad7121cdb97600f261bcd5f04c8db20d.tar.gz
rust-8b0c05d9ad7121cdb97600f261bcd5f04c8db20d.zip
Auto merge of #102091 - RalfJung:const_err, r=oli-obk
make const_err a hard error

This lint has been deny-by-default with future incompat wording since [Rust 1.51](https://github.com/rust-lang/rust/pull/80394) and the stable release of this week starts showing it in cargo's future compat reports. I can't wait to finally get rid of at least some of the mess in our const-err-reporting-code. ;)

r? `@oli-obk`
Fixes https://github.com/rust-lang/rust/issues/71800
Fixes https://github.com/rust-lang/rust/issues/100114
Diffstat (limited to 'src/tools/clippy/clippy_lints')
-rw-r--r--src/tools/clippy/clippy_lints/src/indexing_slicing.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/tools/clippy/clippy_lints/src/indexing_slicing.rs b/src/tools/clippy/clippy_lints/src/indexing_slicing.rs
index 4a375752e1d..af40a5a8187 100644
--- a/src/tools/clippy/clippy_lints/src/indexing_slicing.rs
+++ b/src/tools/clippy/clippy_lints/src/indexing_slicing.rs
@@ -19,7 +19,6 @@ declare_clippy_lint! {
     ///
     /// ### Example
     /// ```rust,no_run
-    /// # #![allow(const_err)]
     /// let x = [1, 2, 3, 4];
     ///
     /// x[9];