Skip to content

Commit 214dcea

Browse files
committed
Stabilize round_char_boundary feature
1 parent f5703d5 commit 214dcea

File tree

9 files changed

+4
-12
lines changed

9 files changed

+4
-12
lines changed

compiler/rustc_middle/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
#![feature(negative_impls)]
5252
#![feature(never_type)]
5353
#![feature(ptr_alignment_type)]
54-
#![feature(round_char_boundary)]
5554
#![feature(rustc_attrs)]
5655
#![feature(rustdoc_internals)]
5756
#![feature(sized_hierarchy)]

compiler/rustc_span/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
#![feature(map_try_insert)]
2727
#![feature(negative_impls)]
2828
#![feature(read_buf)]
29-
#![feature(round_char_boundary)]
3029
#![feature(rustc_attrs)]
3130
#![feature(rustdoc_internals)]
3231
// tidy-alphabetical-end

library/alloctests/tests/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#![feature(inplace_iteration)]
2424
#![feature(iter_advance_by)]
2525
#![feature(iter_next_chunk)]
26-
#![feature(round_char_boundary)]
2726
#![feature(slice_partition_dedup)]
2827
#![feature(string_from_utf8_lossy_owned)]
2928
#![feature(string_remove_matches)]

library/core/src/str/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,6 @@ impl str {
396396
/// # Examples
397397
///
398398
/// ```
399-
/// #![feature(round_char_boundary)]
400399
/// let s = "❤️🧡💛💚💙💜";
401400
/// assert_eq!(s.len(), 26);
402401
/// assert!(!s.is_char_boundary(13));
@@ -405,7 +404,8 @@ impl str {
405404
/// assert_eq!(closest, 10);
406405
/// assert_eq!(&s[..closest], "❤️🧡");
407406
/// ```
408-
#[unstable(feature = "round_char_boundary", issue = "93743")]
407+
#[stable(feature = "round_char_boundary", since = "CURRENT_RUSTC_VERSION")]
408+
#[rustc_const_stable(feature = "round_char_boundary", since = "CURRENT_RUSTC_VERSION")]
409409
#[inline]
410410
pub const fn floor_char_boundary(&self, index: usize) -> usize {
411411
if index >= self.len() {
@@ -439,7 +439,6 @@ impl str {
439439
/// # Examples
440440
///
441441
/// ```
442-
/// #![feature(round_char_boundary)]
443442
/// let s = "❤️🧡💛💚💙💜";
444443
/// assert_eq!(s.len(), 26);
445444
/// assert!(!s.is_char_boundary(13));
@@ -448,7 +447,8 @@ impl str {
448447
/// assert_eq!(closest, 14);
449448
/// assert_eq!(&s[..closest], "❤️🧡💛");
450449
/// ```
451-
#[unstable(feature = "round_char_boundary", issue = "93743")]
450+
#[stable(feature = "round_char_boundary", since = "CURRENT_RUSTC_VERSION")]
451+
#[rustc_const_stable(feature = "round_char_boundary", since = "CURRENT_RUSTC_VERSION")]
452452
#[inline]
453453
pub const fn ceil_char_boundary(&self, index: usize) -> usize {
454454
if index >= self.len() {

library/std/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,6 @@
263263
all(target_vendor = "fortanix", target_env = "sgx"),
264264
feature(slice_index_methods, coerce_unsized, sgx_platform)
265265
)]
266-
#![cfg_attr(any(windows, target_os = "uefi"), feature(round_char_boundary))]
267266
#![cfg_attr(target_family = "wasm", feature(stdarch_wasm_atomic_wait))]
268267
#![cfg_attr(target_arch = "wasm64", feature(simd_wasm64))]
269268
//

src/librustdoc/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#![feature(format_args_nl)]
1313
#![feature(if_let_guard)]
1414
#![feature(iter_intersperse)]
15-
#![feature(round_char_boundary)]
1615
#![feature(rustc_private)]
1716
#![feature(test)]
1817
#![warn(rustc::internal)]

src/tools/clippy/clippy_lints/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#![feature(iter_intersperse)]
88
#![feature(iter_partition_in_place)]
99
#![feature(never_type)]
10-
#![feature(round_char_boundary)]
1110
#![feature(rustc_private)]
1211
#![feature(stmt_expr_attributes)]
1312
#![feature(unwrap_infallible)]

src/tools/clippy/tests/ui/char_indices_as_byte_indices.fixed

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![feature(round_char_boundary)]
21
#![warn(clippy::char_indices_as_byte_indices)]
32

43
trait StrExt {

src/tools/clippy/tests/ui/char_indices_as_byte_indices.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![feature(round_char_boundary)]
21
#![warn(clippy::char_indices_as_byte_indices)]
32

43
trait StrExt {

0 commit comments

Comments
 (0)