Skip to content

Commit b454991

Browse files
Finish bumping stage0
It looks like the last time had left some remaining cfg's -- which made me think that the stage0 bump was actually successful. This brings us to a released 1.62 beta though.
1 parent 4614711 commit b454991

File tree

19 files changed

+347
-466
lines changed

19 files changed

+347
-466
lines changed

compiler/rustc_codegen_gcc/src/intrinsic/simd.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ use crate::builder::Builder;
1313

1414
pub fn generic_simd_intrinsic<'a, 'gcc, 'tcx>(bx: &mut Builder<'a, 'gcc, 'tcx>, name: Symbol, callee_ty: Ty<'tcx>, args: &[OperandRef<'tcx, RValue<'gcc>>], ret_ty: Ty<'tcx>, llret_ty: Type<'gcc>, span: Span) -> Result<RValue<'gcc>, ()> {
1515
// macros for error handling:
16+
#[allow(unused_macro_rules)]
1617
macro_rules! emit_error {
1718
($msg: tt) => {
1819
emit_error!($msg, )

compiler/rustc_codegen_llvm/src/intrinsic.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ fn generic_simd_intrinsic<'ll, 'tcx>(
816816
span: Span,
817817
) -> Result<&'ll Value, ()> {
818818
// macros for error handling:
819-
#[cfg_attr(not(bootstrap), allow(unused_macro_rules))]
819+
#[allow(unused_macro_rules)]
820820
macro_rules! emit_error {
821821
($msg: tt) => {
822822
emit_error!($msg, )
@@ -1145,7 +1145,7 @@ fn generic_simd_intrinsic<'ll, 'tcx>(
11451145
span: Span,
11461146
args: &[OperandRef<'tcx, &'ll Value>],
11471147
) -> Result<&'ll Value, ()> {
1148-
#[cfg_attr(not(bootstrap), allow(unused_macro_rules))]
1148+
#[allow(unused_macro_rules)]
11491149
macro_rules! emit_error {
11501150
($msg: tt) => {
11511151
emit_error!($msg, )

compiler/rustc_feature/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
//! even if it is stabilized or removed, *do not remove it*. Instead, move the
1212
//! symbol to the `accepted` or `removed` modules respectively.
1313
14-
#![cfg_attr(bootstrap, feature(derive_default_enum))]
1514
#![feature(once_cell)]
1615

1716
mod accepted;

compiler/rustc_infer/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
1717
#![feature(box_patterns)]
1818
#![feature(control_flow_enum)]
19-
#![cfg_attr(bootstrap, feature(derive_default_enum))]
2019
#![feature(extend_one)]
2120
#![feature(label_break_value)]
2221
#![feature(let_chains)]

compiler/rustc_middle/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
#![feature(backtrace)]
3030
#![feature(box_patterns)]
3131
#![feature(core_intrinsics)]
32-
#![cfg_attr(bootstrap, feature(derive_default_enum))]
3332
#![feature(discriminant_kind)]
3433
#![feature(exhaustive_patterns)]
3534
#![feature(get_mut_unchecked)]

compiler/rustc_middle/src/mir/visit.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ macro_rules! make_mir_visitor {
258258
// for best performance, we want to use an iterator rather
259259
// than a for-loop, to avoid calling `body::Body::invalidate` for
260260
// each basic block.
261-
#[cfg_attr(not(bootstrap), allow(unused_macro_rules))]
261+
#[allow(unused_macro_rules)]
262262
macro_rules! basic_blocks {
263263
(mut) => (body.basic_blocks_mut().iter_enumerated_mut());
264264
() => (body.basic_blocks().iter_enumerated());
@@ -280,7 +280,7 @@ macro_rules! make_mir_visitor {
280280
self.visit_local_decl(local, & $($mutability)? body.local_decls[local]);
281281
}
282282

283-
#[cfg_attr(not(bootstrap), allow(unused_macro_rules))]
283+
#[allow(unused_macro_rules)]
284284
macro_rules! type_annotations {
285285
(mut) => (body.user_type_annotations.iter_enumerated_mut());
286286
() => (body.user_type_annotations.iter_enumerated());
@@ -933,7 +933,7 @@ macro_rules! make_mir_visitor {
933933
body: &$($mutability)? Body<'tcx>,
934934
location: Location
935935
) {
936-
#[cfg_attr(not(bootstrap), allow(unused_macro_rules))]
936+
#[allow(unused_macro_rules)]
937937
macro_rules! basic_blocks {
938938
(mut) => (body.basic_blocks_mut());
939939
() => (body.basic_blocks());

compiler/rustc_session/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#![feature(if_let_guard)]
22
#![feature(let_chains)]
3-
#![cfg_attr(bootstrap, feature(derive_default_enum))]
43
#![feature(let_else)]
54
#![feature(min_specialization)]
65
#![feature(never_type)]

compiler/rustc_trait_selection/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
1515
#![feature(box_patterns)]
1616
#![feature(control_flow_enum)]
17-
#![cfg_attr(bootstrap, feature(derive_default_enum))]
1817
#![feature(drain_filter)]
1918
#![feature(hash_drain_filter)]
2019
#![feature(label_break_value)]

library/alloc/src/ffi/c_str.rs

Lines changed: 0 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -1053,84 +1053,6 @@ impl AsRef<CStr> for CString {
10531053
}
10541054
}
10551055

1056-
#[cfg(bootstrap)]
1057-
#[doc(hidden)]
1058-
#[unstable(feature = "cstr_internals", issue = "none")]
1059-
pub trait CStrExt {
1060-
/// Converts a `CStr` into a <code>[Cow]<[str]></code>.
1061-
///
1062-
/// If the contents of the `CStr` are valid UTF-8 data, this
1063-
/// function will return a <code>[Cow]::[Borrowed]\(&[str])</code>
1064-
/// with the corresponding <code>&[str]</code> slice. Otherwise, it will
1065-
/// replace any invalid UTF-8 sequences with
1066-
/// [`U+FFFD REPLACEMENT CHARACTER`][U+FFFD] and return a
1067-
/// <code>[Cow]::[Owned]\(&[str])</code> with the result.
1068-
///
1069-
/// [str]: prim@str "str"
1070-
/// [Borrowed]: Cow::Borrowed
1071-
/// [Owned]: Cow::Owned
1072-
/// [U+FFFD]: crate::char::REPLACEMENT_CHARACTER "std::char::REPLACEMENT_CHARACTER"
1073-
///
1074-
/// # Examples
1075-
///
1076-
/// Calling `to_string_lossy` on a `CStr` containing valid UTF-8:
1077-
///
1078-
/// ```
1079-
/// use std::borrow::Cow;
1080-
/// use std::ffi::CStr;
1081-
///
1082-
/// let cstr = CStr::from_bytes_with_nul(b"Hello World\0")
1083-
/// .expect("CStr::from_bytes_with_nul failed");
1084-
/// assert_eq!(cstr.to_string_lossy(), Cow::Borrowed("Hello World"));
1085-
/// ```
1086-
///
1087-
/// Calling `to_string_lossy` on a `CStr` containing invalid UTF-8:
1088-
///
1089-
/// ```
1090-
/// use std::borrow::Cow;
1091-
/// use std::ffi::CStr;
1092-
///
1093-
/// let cstr = CStr::from_bytes_with_nul(b"Hello \xF0\x90\x80World\0")
1094-
/// .expect("CStr::from_bytes_with_nul failed");
1095-
/// assert_eq!(
1096-
/// cstr.to_string_lossy(),
1097-
/// Cow::Owned(String::from("Hello �World")) as Cow<'_, str>
1098-
/// );
1099-
/// ```
1100-
#[must_use = "this returns the result of the operation, \
1101-
without modifying the original"]
1102-
#[stable(feature = "cstr_to_str", since = "1.4.0")]
1103-
fn to_string_lossy(&self) -> Cow<'_, str>;
1104-
1105-
/// Converts a <code>[Box]<[CStr]></code> into a [`CString`] without copying or allocating.
1106-
///
1107-
/// # Examples
1108-
///
1109-
/// ```
1110-
/// use std::ffi::CString;
1111-
///
1112-
/// let c_string = CString::new(b"foo".to_vec()).expect("CString::new failed");
1113-
/// let boxed = c_string.into_boxed_c_str();
1114-
/// assert_eq!(boxed.into_c_string(), CString::new("foo").expect("CString::new failed"));
1115-
/// ```
1116-
#[must_use = "`self` will be dropped if the result is not used"]
1117-
#[stable(feature = "into_boxed_c_str", since = "1.20.0")]
1118-
fn into_c_string(self: Box<Self>) -> CString;
1119-
}
1120-
1121-
#[cfg(bootstrap)]
1122-
#[unstable(feature = "cstr_internals", issue = "none")]
1123-
impl CStrExt for CStr {
1124-
fn to_string_lossy(&self) -> Cow<'_, str> {
1125-
String::from_utf8_lossy(self.to_bytes())
1126-
}
1127-
1128-
fn into_c_string(self: Box<Self>) -> CString {
1129-
CString::from(self)
1130-
}
1131-
}
1132-
1133-
#[cfg(not(bootstrap))]
11341056
#[cfg(not(test))]
11351057
impl CStr {
11361058
/// Converts a `CStr` into a <code>[Cow]<[str]></code>.

library/alloc/src/ffi/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,6 @@
8080
8181
#![unstable(feature = "alloc_ffi", issue = "94079")]
8282

83-
#[cfg(bootstrap)]
84-
#[unstable(feature = "cstr_internals", issue = "none")]
85-
pub use self::c_str::CStrExt;
8683
#[unstable(feature = "alloc_c_string", issue = "94079")]
8784
pub use self::c_str::FromVecWithNulError;
8885
#[unstable(feature = "alloc_c_string", issue = "94079")]

0 commit comments

Comments
 (0)