Skip to content

Commit e370b60

Browse files
committed
Auto merge of rust-lang#153544 - JonathanBrouwer:rollup-LT1ogBG, r=JonathanBrouwer
Rollup of 2 pull requests Successful merges: - rust-lang#153462 (Bootstrap update) - rust-lang#152210 (Gate #![reexport_test_harness_main] properly)
2 parents e3d66fe + 0da3785 commit e370b60

File tree

106 files changed

+969
-1065
lines changed

Some content is hidden

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

106 files changed

+969
-1065
lines changed

compiler/rustc_abi/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// tidy-alphabetical-start
2-
#![cfg_attr(all(feature = "nightly", bootstrap, test), feature(assert_matches))]
32
#![cfg_attr(feature = "nightly", allow(internal_features))]
43
#![cfg_attr(feature = "nightly", feature(rustc_attrs))]
54
#![cfg_attr(feature = "nightly", feature(step_trait))]

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)]

0 commit comments

Comments
 (0)