diff options
| author | Corey Farwell <coreyf@rwell.org> | 2017-09-23 00:29:11 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-09-23 00:29:11 -0400 |
| commit | bdbe6e2b35e106979b066b5c8fb9131e91392e4d (patch) | |
| tree | d961acdfefe5f85945c786d018b9141ccc882396 /src/libcore | |
| parent | 04eb88c987be232e9eecba7c2d336e10b614dfac (diff) | |
| parent | 07416452304b2c0b41597fdfe63f4b3b00aeecd9 (diff) | |
| download | rust-bdbe6e2b35e106979b066b5c8fb9131e91392e4d.tar.gz rust-bdbe6e2b35e106979b066b5c8fb9131e91392e4d.zip | |
Rollup merge of #44658 - leodasvacas:remove-str-eq-lang-item, r=arielb1
Remove str_eq lang item It's not really a lang item. Also remove outdated note. The reference uses this as an example so it has to be updated.
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/str/mod.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs index c24cdb30bad..5d0cefa1013 100644 --- a/src/libcore/str/mod.rs +++ b/src/libcore/str/mod.rs @@ -1399,9 +1399,6 @@ Section: Comparing strings */ /// Bytewise slice equality -/// NOTE: This function is (ab)used in rustc::middle::trans::_match -/// to compare &[u8] byte slices that are not necessarily valid UTF-8. -#[lang = "str_eq"] #[inline] fn eq_slice(a: &str, b: &str) -> bool { a.as_bytes() == b.as_bytes() |
