Skip to content

Commit 6f727b2

Browse files
Rollup merge of rust-lang#142065 - paolobarbolini:stabilize-const_eq_ignore_ascii_case, r=Mark-Simulacrum
Stabilize `const_eq_ignore_ascii_case` Tracking issue: rust-lang#131719 Closes rust-lang#131719 FCP Completed: rust-lang#131719 (comment)
2 parents 158612f + cd8fb17 commit 6f727b2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/src/slice/ascii.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ impl [u8] {
5252
/// Same as `to_ascii_lowercase(a) == to_ascii_lowercase(b)`,
5353
/// but without allocating and copying temporaries.
5454
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
55-
#[rustc_const_unstable(feature = "const_eq_ignore_ascii_case", issue = "131719")]
55+
#[rustc_const_stable(feature = "const_eq_ignore_ascii_case", since = "CURRENT_RUSTC_VERSION")]
5656
#[must_use]
5757
#[inline]
5858
pub const fn eq_ignore_ascii_case(&self, other: &[u8]) -> bool {

core/src/str/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2671,7 +2671,7 @@ impl str {
26712671
/// assert!(!"Ferrös".eq_ignore_ascii_case("FERRÖS"));
26722672
/// ```
26732673
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
2674-
#[rustc_const_unstable(feature = "const_eq_ignore_ascii_case", issue = "131719")]
2674+
#[rustc_const_stable(feature = "const_eq_ignore_ascii_case", since = "CURRENT_RUSTC_VERSION")]
26752675
#[must_use]
26762676
#[inline]
26772677
pub const fn eq_ignore_ascii_case(&self, other: &str) -> bool {

0 commit comments

Comments
 (0)