Skip to content

Commit 0b2ad87

Browse files
Rollup merge of rust-lang#153462 - cuviper:bootstrap-update, r=Mark-Simulacrum
Bootstrap update - Replace version placeholders with 1.95.0 - Bump stage0 to 1.95.0-beta.1 - Clear `STAGE0_MISSING_TARGETS` - Update `cfg(bootstrap)` - Reformat with the new stage0
2 parents ea5573a + e1e629c commit 0b2ad87

97 files changed

Lines changed: 732 additions & 747 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

compiler/rustc_ast/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
//! This API is completely unstable and subject to change.
66
77
// tidy-alphabetical-start
8-
#![cfg_attr(bootstrap, feature(if_let_guard))]
98
#![doc(test(attr(deny(warnings), allow(internal_features))))]
109
#![feature(associated_type_defaults)]
1110
#![feature(box_patterns)]

compiler/rustc_ast/src/visit.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -762,8 +762,7 @@ macro_rules! common_visitor_and_walkers {
762762
// This is only used by the MutVisitor. We include this symmetry here to make writing other
763763
// functions easier.
764764
$(${ignore($lt)}
765-
#[cfg_attr(not(bootstrap), expect(unused, rustc::disallowed_pass_by_ref))]
766-
#[cfg_attr(bootstrap, expect(unused, rustc::pass_by_value))]
765+
#[expect(unused, rustc::disallowed_pass_by_ref)]
767766
#[inline]
768767
)?
769768
fn visit_span<$($lt,)? V: $Visitor$(<$lt>)?>(vis: &mut V, span: &$($lt)? $($mut)? Span) -> V::Result {

compiler/rustc_ast_lowering/src/delegation.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,19 @@ use ast::visit::Visitor;
4242
use hir::def::{DefKind, PartialRes, Res};
4343
use hir::{BodyId, HirId};
4444
use rustc_abi::ExternAbi;
45+
use rustc_ast as ast;
4546
use rustc_ast::*;
4647
use rustc_attr_parsing::{AttributeParser, ShouldEmit};
4748
use rustc_data_structures::fx::FxHashSet;
4849
use rustc_errors::ErrorGuaranteed;
50+
use rustc_hir as hir;
4951
use rustc_hir::attrs::{AttributeKind, InlineAttr};
5052
use rustc_hir::def_id::{DefId, LocalDefId};
5153
use rustc_middle::span_bug;
5254
use rustc_middle::ty::{Asyncness, DelegationAttrs, DelegationFnSigAttrs, ResolverAstLowering};
5355
use rustc_span::symbol::kw;
5456
use rustc_span::{DUMMY_SP, Ident, Span, Symbol};
5557
use smallvec::SmallVec;
56-
use {rustc_ast as ast, rustc_hir as hir};
5758

5859
use crate::delegation::generics::{GenericsGenerationResult, GenericsGenerationResults};
5960
use crate::errors::{CycleInDelegationSignatureResolution, UnresolvedDelegationCallee};

compiler/rustc_ast_lowering/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
//! in the HIR, especially for multiple identifiers.
3232
3333
// tidy-alphabetical-start
34-
#![cfg_attr(bootstrap, feature(if_let_guard))]
3534
#![feature(box_patterns)]
3635
#![recursion_limit = "256"]
3736
// tidy-alphabetical-end

compiler/rustc_ast_passes/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
//! by `rustc_ast_lowering`.
44
55
// tidy-alphabetical-start
6-
#![cfg_attr(bootstrap, feature(if_let_guard))]
76
#![feature(box_patterns)]
87
#![feature(iter_intersperse)]
98
#![feature(iter_is_partitioned)]

compiler/rustc_attr_parsing/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@
7777
//! containing both `C` and `packed` annotations.
7878
7979
// tidy-alphabetical-start
80-
#![cfg_attr(bootstrap, feature(if_let_guard))]
8180
#![feature(decl_macro)]
8281
#![feature(iter_intersperse)]
8382
#![recursion_limit = "256"]

compiler/rustc_borrowck/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
33
// tidy-alphabetical-start
44
#![allow(internal_features)]
5-
#![cfg_attr(bootstrap, feature(assert_matches))]
6-
#![cfg_attr(bootstrap, feature(if_let_guard))]
75
#![feature(box_patterns)]
86
#![feature(default_field_values)]
97
#![feature(file_buffered)]

compiler/rustc_builtin_macros/src/asm.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1+
use rustc_ast as ast;
12
use rustc_ast::tokenstream::TokenStream;
23
use rustc_ast::{AsmMacro, token};
34
use rustc_data_structures::fx::{FxHashMap, FxIndexMap};
45
use rustc_errors::PResult;
56
use rustc_expand::base::*;
67
use rustc_index::bit_set::GrowableBitSet;
78
use rustc_parse::parser::asm::*;
9+
use rustc_parse_format as parse;
810
use rustc_session::lint;
911
use rustc_span::{ErrorGuaranteed, InnerSpan, Span, Symbol, sym};
1012
use rustc_target::asm::InlineAsmArch;
1113
use smallvec::smallvec;
12-
use {rustc_ast as ast, rustc_parse_format as parse};
1314

1415
use crate::errors;
1516
use crate::util::{ExprToSpannedString, expr_to_spanned_string};

compiler/rustc_builtin_macros/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
44
// tidy-alphabetical-start
55
#![allow(internal_features)]
6-
#![cfg_attr(bootstrap, feature(assert_matches))]
7-
#![cfg_attr(bootstrap, feature(if_let_guard))]
86
#![feature(box_patterns)]
97
#![feature(decl_macro)]
108
#![feature(iter_order_by)]

compiler/rustc_codegen_llvm/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
//! This API is completely unstable and subject to change.
66
77
// tidy-alphabetical-start
8-
#![cfg_attr(bootstrap, feature(assert_matches))]
9-
#![cfg_attr(bootstrap, feature(if_let_guard))]
108
#![feature(extern_types)]
119
#![feature(file_buffered)]
1210
#![feature(impl_trait_in_assoc_type)]

0 commit comments

Comments
 (0)