]> git.lizzy.rs Git - rust.git/blobdiff - library/core/src/slice/index.rs
remove exclamation mark
[rust.git] / library / core / src / slice / index.rs
index 880d0f80cc8a05ec4a4211fb88723cd3bf526253..68de4e4e1f32a95ee9b52ac06e2deed82ee120c6 100644 (file)
@@ -140,6 +140,7 @@ impl Sealed for (ops::Bound<usize>, ops::Bound<usize>) {}
 /// Implementations of this trait have to promise that if the argument
 /// to `get_(mut_)unchecked` is a safe reference, then so is the result.
 #[stable(feature = "slice_get_slice", since = "1.28.0")]
+#[rustc_diagnostic_item = "SliceIndex"]
 #[rustc_on_unimplemented(
     on(T = "str", label = "string indices are ranges of `usize`",),
     on(