about summary refs log tree commit diff
path: root/src/libcore/ops
diff options
context:
space:
mode:
authorAlexis Hunt <lexer@google.com>2019-01-14 08:10:45 -0500
committerAlexis Hunt <lexer@google.com>2019-01-19 04:16:05 -0500
commitc7d25a2a4082e6d2601ea4c06ea01b632d196172 (patch)
tree9dc0b9be6ea693c1df656b7a4a6caed1178b98cf /src/libcore/ops
parentaf73e64423a450d887df32e2998b8831d7ec653e (diff)
downloadrust-c7d25a2a4082e6d2601ea4c06ea01b632d196172.tar.gz
rust-c7d25a2a4082e6d2601ea4c06ea01b632d196172.zip
Make `str` indexing generic on `SliceIndex`.
Diffstat (limited to 'src/libcore/ops')
-rw-r--r--src/libcore/ops/index.rs15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/libcore/ops/index.rs b/src/libcore/ops/index.rs
index 6cfa36741d0..d4ed8614276 100644
--- a/src/libcore/ops/index.rs
+++ b/src/libcore/ops/index.rs
@@ -51,21 +51,6 @@
 /// ```
 #[lang = "index"]
 #[rustc_on_unimplemented(
-    on(
-        _Self="&str",
-        note="you can use `.chars().nth()` or `.bytes().nth()`
-see chapter in The Book <https://doc.rust-lang.org/book/ch08-02-strings.html#indexing-into-strings>"
-    ),
-    on(
-        _Self="str",
-        note="you can use `.chars().nth()` or `.bytes().nth()`
-see chapter in The Book <https://doc.rust-lang.org/book/ch08-02-strings.html#indexing-into-strings>"
-    ),
-    on(
-        _Self="std::string::String",
-        note="you can use `.chars().nth()` or `.bytes().nth()`
-see chapter in The Book <https://doc.rust-lang.org/book/ch08-02-strings.html#indexing-into-strings>"
-    ),
     message="the type `{Self}` cannot be indexed by `{Idx}`",
     label="`{Self}` cannot be indexed by `{Idx}`",
 )]