File tree 2 files changed +0
-5
lines changed
2 files changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -1400,9 +1400,6 @@ Section: Comparing strings
1400
1400
*/
1401
1401
1402
1402
/// 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" ]
1406
1403
#[ inline]
1407
1404
fn eq_slice ( a : & str , b : & str ) -> bool {
1408
1405
a. as_bytes ( ) == b. as_bytes ( )
Original file line number Diff line number Diff line change @@ -281,8 +281,6 @@ language_item_table! {
281
281
EqTraitLangItem , "eq" , eq_trait;
282
282
OrdTraitLangItem , "ord" , ord_trait;
283
283
284
- StrEqFnLangItem , "str_eq" , str_eq_fn;
285
-
286
284
// A number of panic-related lang items. The `panic` item corresponds to
287
285
// divide-by-zero and various panic cases with `match`. The
288
286
// `panic_bounds_check` item is for indexing arrays.
You can’t perform that action at this time.
0 commit comments