Skip to content

Commit 02e32d7

Browse files
committed
Auto merge of rust-lang#132972 - matthiaskrgr:rollup-456osr7, r=matthiaskrgr
Rollup of 7 pull requests Successful merges: - rust-lang#132702 (CFI: Append debug location to CFI blocks) - rust-lang#132851 (Update the doc comment of `ASCII_CASE_MASK`) - rust-lang#132948 (stabilize const_unicode_case_lookup) - rust-lang#132950 (Use GNU ld on m68k-unknown-linux-gnu) - rust-lang#132962 (triagebot: add codegen reviewers) - rust-lang#132966 (stabilize const_option_ext) - rust-lang#132970 (Add tracking issue number to unsigned_nonzero_div_ceil feature) r? `@ghost` `@rustbot` modify labels: rollup
2 parents 6560098 + 157eb1c commit 02e32d7

File tree

7 files changed

+11
-13
lines changed

7 files changed

+11
-13
lines changed

core/src/char/methods.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -775,13 +775,12 @@ impl char {
775775
/// In a const context:
776776
///
777777
/// ```
778-
/// #![feature(const_unicode_case_lookup)]
779778
/// const CAPITAL_DELTA_IS_LOWERCASE: bool = 'Δ'.is_lowercase();
780779
/// assert!(!CAPITAL_DELTA_IS_LOWERCASE);
781780
/// ```
782781
#[must_use]
783782
#[stable(feature = "rust1", since = "1.0.0")]
784-
#[rustc_const_unstable(feature = "const_unicode_case_lookup", issue = "101400")]
783+
#[rustc_const_stable(feature = "const_unicode_case_lookup", since = "1.84.0")]
785784
#[inline]
786785
pub const fn is_lowercase(self) -> bool {
787786
match self {
@@ -817,13 +816,12 @@ impl char {
817816
/// In a const context:
818817
///
819818
/// ```
820-
/// #![feature(const_unicode_case_lookup)]
821819
/// const CAPITAL_DELTA_IS_UPPERCASE: bool = 'Δ'.is_uppercase();
822820
/// assert!(CAPITAL_DELTA_IS_UPPERCASE);
823821
/// ```
824822
#[must_use]
825823
#[stable(feature = "rust1", since = "1.0.0")]
826-
#[rustc_const_unstable(feature = "const_unicode_case_lookup", issue = "101400")]
824+
#[rustc_const_stable(feature = "const_unicode_case_lookup", since = "1.84.0")]
827825
#[inline]
828826
pub const fn is_uppercase(self) -> bool {
829827
match self {

core/src/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@
120120
#![feature(const_float_methods)]
121121
#![feature(const_heap)]
122122
#![feature(const_nonnull_new)]
123-
#![feature(const_option_ext)]
124123
#![feature(const_pin_2)]
125124
#![feature(const_ptr_is_null)]
126125
#![feature(const_ptr_sub_ptr)]
@@ -134,7 +133,6 @@
134133
#![feature(const_type_name)]
135134
#![feature(const_typed_swap)]
136135
#![feature(const_ub_checks)]
137-
#![feature(const_unicode_case_lookup)]
138136
#![feature(core_intrinsics)]
139137
#![feature(coverage_attribute)]
140138
#![feature(do_not_recommend)]

core/src/num/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ impl isize {
528528
midpoint_impl! { isize, signed }
529529
}
530530

531-
/// If the 6th bit is set ascii is lower case.
531+
/// If the bit selected by this mask is set, ascii is lower case.
532532
const ASCII_CASE_MASK: u8 = 0b0010_0000;
533533

534534
impl u8 {

core/src/num/nonzero.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1233,7 +1233,7 @@ macro_rules! nonzero_integer_signedness_dependent_impls {
12331233
#[doc = concat!("let three = NonZero::new(3", stringify!($Int), ").unwrap();")]
12341234
/// assert_eq!(three.div_ceil(two), two);
12351235
/// ```
1236-
#[unstable(feature = "unsigned_nonzero_div_ceil", issue = "none")]
1236+
#[unstable(feature = "unsigned_nonzero_div_ceil", issue = "132968")]
12371237
#[must_use = "this returns the result of the operation, \
12381238
without modifying the original"]
12391239
#[inline]

core/src/option.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ impl<T> Option<T> {
738738
#[inline]
739739
#[must_use]
740740
#[stable(feature = "pin", since = "1.33.0")]
741-
#[rustc_const_unstable(feature = "const_option_ext", issue = "91930")]
741+
#[rustc_const_stable(feature = "const_option_ext", since = "CURRENT_RUSTC_VERSION")]
742742
pub const fn as_pin_ref(self: Pin<&Self>) -> Option<Pin<&T>> {
743743
// FIXME(const-hack): use `map` once that is possible
744744
match Pin::get_ref(self).as_ref() {
@@ -755,7 +755,7 @@ impl<T> Option<T> {
755755
#[inline]
756756
#[must_use]
757757
#[stable(feature = "pin", since = "1.33.0")]
758-
#[rustc_const_unstable(feature = "const_option_ext", issue = "91930")]
758+
#[rustc_const_stable(feature = "const_option_ext", since = "CURRENT_RUSTC_VERSION")]
759759
pub const fn as_pin_mut(self: Pin<&mut Self>) -> Option<Pin<&mut T>> {
760760
// SAFETY: `get_unchecked_mut` is never used to move the `Option` inside `self`.
761761
// `x` is guaranteed to be pinned because it comes from `self` which is pinned.
@@ -802,7 +802,7 @@ impl<T> Option<T> {
802802
#[inline]
803803
#[must_use]
804804
#[stable(feature = "option_as_slice", since = "1.75.0")]
805-
#[rustc_const_unstable(feature = "const_option_ext", issue = "91930")]
805+
#[rustc_const_stable(feature = "const_option_ext", since = "CURRENT_RUSTC_VERSION")]
806806
pub const fn as_slice(&self) -> &[T] {
807807
// SAFETY: When the `Option` is `Some`, we're using the actual pointer
808808
// to the payload, with a length of 1, so this is equivalent to
@@ -857,7 +857,7 @@ impl<T> Option<T> {
857857
#[inline]
858858
#[must_use]
859859
#[stable(feature = "option_as_slice", since = "1.75.0")]
860-
#[rustc_const_unstable(feature = "const_option_ext", issue = "91930")]
860+
#[rustc_const_stable(feature = "const_option_ext", since = "CURRENT_RUSTC_VERSION")]
861861
pub const fn as_mut_slice(&mut self) -> &mut [T] {
862862
// SAFETY: When the `Option` is `Some`, we're using the actual pointer
863863
// to the payload, with a length of 1, so this is equivalent to

core/src/unicode/unicode_data.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
///! This file is generated by `./x run src/tools/unicode-table-generator`; do not edit manually!
22
33
#[inline(always)]
4+
#[cfg_attr(bootstrap, rustc_const_stable(feature = "const_unicode_case_lookup", since = "1.84.0"))]
45
const fn bitset_search<
56
const N: usize,
67
const CHUNK_SIZE: usize,
@@ -423,6 +424,7 @@ pub mod lowercase {
423424
(5, 187), (6, 78), (7, 132),
424425
];
425426

427+
#[cfg_attr(bootstrap, rustc_const_stable(feature = "const_unicode_case_lookup", since = "1.84.0"))]
426428
pub const fn lookup(c: char) -> bool {
427429
super::bitset_search(
428430
c as u32,
@@ -547,6 +549,7 @@ pub mod uppercase {
547549
(2, 146), (2, 20), (3, 146), (3, 140), (3, 134), (4, 178), (4, 171),
548550
];
549551

552+
#[cfg_attr(bootstrap, rustc_const_stable(feature = "const_unicode_case_lookup", since = "1.84.0"))]
550553
pub const fn lookup(c: char) -> bool {
551554
super::bitset_search(
552555
c as u32,

core/tests/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
#![feature(const_eval_select)]
2222
#![feature(const_heap)]
2323
#![feature(const_nonnull_new)]
24-
#![feature(const_option_ext)]
2524
#![feature(const_pin_2)]
2625
#![feature(const_trait_impl)]
2726
#![feature(core_intrinsics)]

0 commit comments

Comments
 (0)