Skip to content

Commit 0741645

Browse files
committed
Remove unused str_eq lang item
It's not a lang item anymore. Also remove outdated note.
1 parent ef227f5 commit 0741645

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/libcore/str/mod.rs

-3
Original file line numberDiff line numberDiff line change
@@ -1400,9 +1400,6 @@ Section: Comparing strings
14001400
*/
14011401

14021402
/// Bytewise slice equality
1403-
/// NOTE: This function is (ab)used in rustc::middle::trans::_match
1404-
/// to compare &[u8] byte slices that are not necessarily valid UTF-8.
1405-
#[lang = "str_eq"]
14061403
#[inline]
14071404
fn eq_slice(a: &str, b: &str) -> bool {
14081405
a.as_bytes() == b.as_bytes()

src/librustc/middle/lang_items.rs

-2
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,6 @@ language_item_table! {
281281
EqTraitLangItem, "eq", eq_trait;
282282
OrdTraitLangItem, "ord", ord_trait;
283283

284-
StrEqFnLangItem, "str_eq", str_eq_fn;
285-
286284
// A number of panic-related lang items. The `panic` item corresponds to
287285
// divide-by-zero and various panic cases with `match`. The
288286
// `panic_bounds_check` item is for indexing arrays.

0 commit comments

Comments
 (0)