Skip to content

Commit e1d7dec

Browse files
committed
Auto merge of #102051 - pietroalbini:pa-bootstrap-update, r=Mark-Simulacrum
Update bootstrap compiler to 1.65.0 This PR updates the bootstrap compiler to Rust 1.65.0, removing the various `cfg(bootstrap)`s. r? `@Mark-Simulacrum`
2 parents 84946fe + f7b0c85 commit e1d7dec

File tree

93 files changed

+385
-1678
lines changed

Some content is hidden

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

93 files changed

+385
-1678
lines changed

compiler/rustc_ast/src/ast.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3046,7 +3046,6 @@ mod size_asserts {
30463046
static_assert_size!(Block, 48);
30473047
static_assert_size!(Expr, 104);
30483048
static_assert_size!(ExprKind, 72);
3049-
#[cfg(not(bootstrap))]
30503049
static_assert_size!(Fn, 184);
30513050
static_assert_size!(ForeignItem, 96);
30523051
static_assert_size!(ForeignItemKind, 24);

compiler/rustc_ast/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
#![feature(const_default_impls)]
1414
#![feature(const_trait_impl)]
1515
#![feature(if_let_guard)]
16-
#![cfg_attr(bootstrap, feature(label_break_value))]
1716
#![feature(let_chains)]
18-
#![cfg_attr(bootstrap, feature(let_else))]
1917
#![feature(min_specialization)]
2018
#![feature(negative_impls)]
2119
#![feature(slice_internals)]

compiler/rustc_ast_lowering/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
3333
#![feature(box_patterns)]
3434
#![feature(let_chains)]
35-
#![cfg_attr(bootstrap, feature(let_else))]
3635
#![feature(never_type)]
3736
#![recursion_limit = "256"]
3837
#![allow(rustc::potential_query_instability)]

compiler/rustc_ast_passes/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#![feature(if_let_guard)]
1010
#![feature(iter_is_partitioned)]
1111
#![feature(let_chains)]
12-
#![cfg_attr(bootstrap, feature(let_else))]
1312
#![recursion_limit = "256"]
1413

1514
#[macro_use]

compiler/rustc_attr/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
//! to this crate.
66
77
#![feature(let_chains)]
8-
#![cfg_attr(bootstrap, feature(let_else))]
98
#![deny(rustc::untranslatable_diagnostic)]
109
#![deny(rustc::diagnostic_outside_of_impl)]
1110

compiler/rustc_borrowck/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#![allow(rustc::potential_query_instability)]
44
#![feature(box_patterns)]
55
#![feature(let_chains)]
6-
#![cfg_attr(bootstrap, feature(let_else))]
76
#![feature(min_specialization)]
87
#![feature(never_type)]
98
#![feature(rustc_attrs)]

compiler/rustc_builtin_macros/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#![feature(if_let_guard)]
1010
#![feature(is_sorted)]
1111
#![feature(let_chains)]
12-
#![cfg_attr(bootstrap, feature(let_else))]
1312
#![feature(proc_macro_internals)]
1413
#![feature(proc_macro_quote)]
1514
#![recursion_limit = "256"]

compiler/rustc_codegen_llvm/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
88
#![feature(hash_raw_entry)]
99
#![feature(let_chains)]
10-
#![cfg_attr(bootstrap, feature(let_else))]
1110
#![feature(extern_types)]
1211
#![feature(once_cell)]
1312
#![feature(iter_intersperse)]

compiler/rustc_codegen_ssa/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
22
#![feature(box_patterns)]
33
#![feature(try_blocks)]
4-
#![cfg_attr(bootstrap, feature(let_else))]
54
#![feature(once_cell)]
65
#![feature(associated_type_bounds)]
76
#![feature(strict_provenance)]

compiler/rustc_const_eval/src/interpret/operand.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
784784
}
785785

786786
// Some nodes are used a lot. Make sure they don't unintentionally get bigger.
787-
#[cfg(all(target_arch = "x86_64", target_pointer_width = "64", not(bootstrap)))]
787+
#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
788788
mod size_asserts {
789789
use super::*;
790790
use rustc_data_structures::static_assert_size;

0 commit comments

Comments
 (0)