diff options
| author | bors <bors@rust-lang.org> | 2019-01-22 13:40:01 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-01-22 13:40:01 +0000 |
| commit | ad30e9a6814b5d29dfbdcd85ecde48afcc94389b (patch) | |
| tree | 0e358d32a69cc6c584211e87fd412d8f3cb505fb /src/libcore/ops | |
| parent | 76c87a166fa8ca247855ea6c32465d627d1ead14 (diff) | |
| parent | dec7b7b1315a073c40c253cc9c80fc693422e3bf (diff) | |
| download | rust-ad30e9a6814b5d29dfbdcd85ecde48afcc94389b.tar.gz rust-ad30e9a6814b5d29dfbdcd85ecde48afcc94389b.zip | |
Auto merge of #57830 - Centril:rollup, r=Centril
Rollup of 9 pull requests Successful merges: - #57537 (Small perf improvement for fmt) - #57552 (Default images) - #57604 (Make `str` indexing generic on `SliceIndex`.) - #57667 (Fix memory leak in P::filter_map) - #57677 (const_eval: Predetermine the layout of all locals when pushing a stack frame) - #57791 (Add regression test for #54582) - #57798 (Corrected spelling inconsistency) - #57809 (Add powerpc64-unknown-freebsd) - #57813 (fix validation range printing when encountering undef) Failed merges: r? @ghost
Diffstat (limited to 'src/libcore/ops')
| -rw-r--r-- | src/libcore/ops/index.rs | 15 |
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}`", )] |
