Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit b862076

Browse files
committed
Auto merge of rust-lang#3913 - rust-lang:rustup-2024-09-25, r=RalfJung
Automatic Rustup
2 parents 878925e + 9433958 commit b862076

File tree

1,921 files changed

+12372
-12966
lines changed

Some content is hidden

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

1,921 files changed

+12372
-12966
lines changed

.git-blame-ignore-revs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,5 @@ ec2cc761bc7067712ecc7734502f703fe3b024c8
2727
84ac80f1921afc243d71fd0caaa4f2838c294102
2828
# bless mir-opt tests to add `copy`
2929
99cb0c6bc399fb94a0ddde7e9b38e9c00d523bad
30+
# reformat with rustfmt edition 2024
31+
c682aa162b0d41e21cc6748f4fecfe01efb69d1f

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
[submodule "src/llvm-project"]
3434
path = src/llvm-project
3535
url = https://github.com/rust-lang/llvm-project.git
36-
branch = rustc/19.1-2024-07-30
36+
branch = rustc/19.1-2024-09-17
3737
shallow = true
3838
[submodule "src/doc/embedded-book"]
3939
path = src/doc/embedded-book

Cargo.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2177,9 +2177,9 @@ dependencies = [
21772177

21782178
[[package]]
21792179
name = "memchr"
2180-
version = "2.5.0"
2180+
version = "2.7.4"
21812181
source = "registry+https://github.com/rust-lang/crates.io-index"
2182-
checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d"
2182+
checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
21832183

21842184
[[package]]
21852185
name = "memmap2"

compiler/rustc_abi/src/layout.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -999,8 +999,8 @@ impl<Cx: HasDataLayout> LayoutCalculator<Cx> {
999999
if repr.can_randomize_type_layout() && cfg!(feature = "randomize") {
10001000
#[cfg(feature = "randomize")]
10011001
{
1002-
use rand::seq::SliceRandom;
10031002
use rand::SeedableRng;
1003+
use rand::seq::SliceRandom;
10041004
// `ReprOptions.field_shuffle_seed` is a deterministic seed we can use to randomize field
10051005
// ordering.
10061006
let mut rng =

compiler/rustc_abi/src/lib.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1138,13 +1138,10 @@ impl Scalar {
11381138
#[inline]
11391139
pub fn is_bool(&self) -> bool {
11401140
use Integer::*;
1141-
matches!(
1142-
self,
1143-
Scalar::Initialized {
1144-
value: Primitive::Int(I8, false),
1145-
valid_range: WrappingRange { start: 0, end: 1 }
1146-
}
1147-
)
1141+
matches!(self, Scalar::Initialized {
1142+
value: Primitive::Int(I8, false),
1143+
valid_range: WrappingRange { start: 0, end: 1 }
1144+
})
11481145
}
11491146

11501147
/// Get the primitive representation of this type, ignoring the valid range and whether the

compiler/rustc_ast/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ version = "0.0.0"
44
edition = "2021"
55

66
[dependencies]
7-
# FIXME: bumping memchr to 2.7.1 causes linker errors in MSVC thin-lto
87
# tidy-alphabetical-start
98
bitflags = "2.4.1"
10-
memchr = "=2.5.0"
9+
memchr = "2.7.4"
1110
rustc_ast_ir = { path = "../rustc_ast_ir" }
1211
rustc_data_structures = { path = "../rustc_data_structures" }
1312
rustc_index = { path = "../rustc_index" }

compiler/rustc_ast/src/ast.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,19 @@
2121
use std::borrow::Cow;
2222
use std::{cmp, fmt, mem};
2323

24+
pub use GenericArgs::*;
25+
pub use UnsafeSource::*;
2426
pub use rustc_ast_ir::{Movability, Mutability};
2527
use rustc_data_structures::packed::Pu128;
2628
use rustc_data_structures::stable_hasher::{HashStable, StableHasher};
2729
use rustc_data_structures::stack::ensure_sufficient_stack;
2830
use rustc_data_structures::sync::Lrc;
2931
use rustc_macros::{Decodable, Encodable, HashStable_Generic};
30-
use rustc_span::source_map::{respan, Spanned};
31-
use rustc_span::symbol::{kw, sym, Ident, Symbol};
3232
pub use rustc_span::AttrId;
33-
use rustc_span::{ErrorGuaranteed, Span, DUMMY_SP};
34-
use thin_vec::{thin_vec, ThinVec};
35-
pub use GenericArgs::*;
36-
pub use UnsafeSource::*;
33+
use rustc_span::source_map::{Spanned, respan};
34+
use rustc_span::symbol::{Ident, Symbol, kw, sym};
35+
use rustc_span::{DUMMY_SP, ErrorGuaranteed, Span};
36+
use thin_vec::{ThinVec, thin_vec};
3737

3838
pub use crate::format::*;
3939
use crate::ptr::P;
@@ -288,7 +288,7 @@ impl ParenthesizedArgs {
288288
}
289289
}
290290

291-
pub use crate::node_id::{NodeId, CRATE_NODE_ID, DUMMY_NODE_ID};
291+
pub use crate::node_id::{CRATE_NODE_ID, DUMMY_NODE_ID, NodeId};
292292

293293
/// Modifiers on a trait bound like `~const`, `?` and `!`.
294294
#[derive(Copy, Clone, PartialEq, Eq, Encodable, Decodable, Debug)]

compiler/rustc_ast/src/attr/mod.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ use std::iter;
44
use std::sync::atomic::{AtomicU32, Ordering};
55

66
use rustc_index::bit_set::GrowableBitSet;
7-
use rustc_span::symbol::{sym, Ident, Symbol};
87
use rustc_span::Span;
9-
use smallvec::{smallvec, SmallVec};
10-
use thin_vec::{thin_vec, ThinVec};
8+
use rustc_span::symbol::{Ident, Symbol, sym};
9+
use smallvec::{SmallVec, smallvec};
10+
use thin_vec::{ThinVec, thin_vec};
1111

1212
use crate::ast::{
13-
AttrArgs, AttrArgsEq, AttrId, AttrItem, AttrKind, AttrStyle, AttrVec, Attribute, DelimArgs,
14-
Expr, ExprKind, LitKind, MetaItem, MetaItemKind, MetaItemLit, NestedMetaItem, NormalAttr, Path,
15-
PathSegment, Safety, DUMMY_NODE_ID,
13+
AttrArgs, AttrArgsEq, AttrId, AttrItem, AttrKind, AttrStyle, AttrVec, Attribute, DUMMY_NODE_ID,
14+
DelimArgs, Expr, ExprKind, LitKind, MetaItem, MetaItemKind, MetaItemLit, NestedMetaItem,
15+
NormalAttr, Path, PathSegment, Safety,
1616
};
1717
use crate::ptr::P;
1818
use crate::token::{self, CommentKind, Delimiter, Token};

compiler/rustc_ast/src/entry.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
use rustc_span::symbol::sym;
21
use rustc_span::Symbol;
2+
use rustc_span::symbol::sym;
33

4-
use crate::{attr, Attribute};
4+
use crate::{Attribute, attr};
55

66
#[derive(Debug)]
77
pub enum EntryPointType {

compiler/rustc_ast/src/expand/allocator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use rustc_macros::HashStable_Generic;
2-
use rustc_span::symbol::{sym, Symbol};
2+
use rustc_span::symbol::{Symbol, sym};
33

44
#[derive(Clone, Debug, Copy, Eq, PartialEq, HashStable_Generic)]
55
pub enum AllocatorKind {

0 commit comments

Comments
 (0)