Skip to content

Commit 2b8b8b8

Browse files
Use a diagnostic item instead of filtering for Index::Output
1 parent da19ff9 commit 2b8b8b8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/ops/index.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
pub trait Index<Idx: ?Sized> {
6060
/// The returned type after indexing.
6161
#[stable(feature = "rust1", since = "1.0.0")]
62+
#[rustc_diagnostic_item = "IndexOutput"]
6263
type Output: ?Sized;
6364

6465
/// Performs the indexing (`container[index]`) operation.

0 commit comments

Comments
 (0)