Skip to content

Commit a8b8a07

Browse files
committed
Auto merge of rust-lang#3773 - rust-lang:rustup-2024-07-30, r=oli-obk
Automatic Rustup
2 parents a6796c1 + 8f712b5 commit a8b8a07

File tree

2,263 files changed

+14278
-12713
lines changed

Some content is hidden

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

2,263 files changed

+14278
-12713
lines changed

.mailmap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ Nick Platt <platt.nicholas@gmail.com>
435435
Niclas Schwarzlose <15schnic@gmail.com>
436436
Nicolas Abram <abramlujan@gmail.com>
437437
Nicole Mazzuca <npmazzuca@gmail.com>
438-
Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> nils <48135649+Nilstrieb@users.noreply.github.com>
438+
Noratrieb <48135649+Noratrieb@users.noreply.github.com> <48135649+Nilstrieb@users.noreply.github.com>
439439
Nif Ward <nif.ward@gmail.com>
440440
Nika Layzell <nika@thelayzells.com> <michael@thelayzells.com>
441441
NODA Kai <nodakai@gmail.com>

Cargo.lock

Lines changed: 28 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -739,9 +739,9 @@ checksum = "55b672471b4e9f9e95499ea597ff64941a309b2cdbffcc46f2cc5e2d971fd335"
739739

740740
[[package]]
741741
name = "compiler_builtins"
742-
version = "0.1.109"
742+
version = "0.1.114"
743743
source = "registry+https://github.com/rust-lang/crates.io-index"
744-
checksum = "f11973008a8cf741fe6d22f339eba21fd0ca81e2760a769ba8243ed6c21edd7e"
744+
checksum = "eb58b199190fcfe0846f55a3b545cd6b07a34bdd5930a476ff856f3ebcc5558a"
745745
dependencies = [
746746
"cc",
747747
"rustc-std-workspace-core",
@@ -2571,18 +2571,6 @@ dependencies = [
25712571
"indexmap",
25722572
"memchr",
25732573
"ruzstd 0.5.0",
2574-
"wasmparser 0.118.2",
2575-
]
2576-
2577-
[[package]]
2578-
name = "object"
2579-
version = "0.34.0"
2580-
source = "registry+https://github.com/rust-lang/crates.io-index"
2581-
checksum = "d7090bae93f8585aad99e595b7073c5de9ba89fbd6b4e9f0cdd7a10177273ac8"
2582-
dependencies = [
2583-
"flate2",
2584-
"memchr",
2585-
"ruzstd 0.6.0",
25862574
]
25872575

25882576
[[package]]
@@ -2596,14 +2584,20 @@ dependencies = [
25962584

25972585
[[package]]
25982586
name = "object"
2599-
version = "0.36.0"
2587+
version = "0.36.2"
26002588
source = "registry+https://github.com/rust-lang/crates.io-index"
2601-
checksum = "576dfe1fc8f9df304abb159d767a29d0476f7750fbf8aa7ad07816004a207434"
2589+
checksum = "3f203fa8daa7bb185f760ae12bd8e097f63d17041dcdcaf675ac54cdf863170e"
26022590
dependencies = [
26032591
"compiler_builtins",
2592+
"crc32fast",
2593+
"flate2",
2594+
"hashbrown",
2595+
"indexmap",
26042596
"memchr",
26052597
"rustc-std-workspace-alloc",
26062598
"rustc-std-workspace-core",
2599+
"ruzstd 0.7.0",
2600+
"wasmparser 0.214.0",
26072601
]
26082602

26092603
[[package]]
@@ -3344,10 +3338,10 @@ dependencies = [
33443338
"bstr",
33453339
"build_helper",
33463340
"gimli 0.31.0",
3347-
"object 0.34.0",
3341+
"object 0.36.2",
33483342
"regex",
33493343
"similar",
3350-
"wasmparser 0.118.2",
3344+
"wasmparser 0.214.0",
33513345
]
33523346

33533347
[[package]]
@@ -3653,7 +3647,7 @@ dependencies = [
36533647
"itertools",
36543648
"libc",
36553649
"measureme",
3656-
"object 0.32.2",
3650+
"object 0.36.2",
36573651
"rustc-demangle",
36583652
"rustc_ast",
36593653
"rustc_attr",
@@ -3692,7 +3686,7 @@ dependencies = [
36923686
"itertools",
36933687
"jobserver",
36943688
"libc",
3695-
"object 0.32.2",
3689+
"object 0.36.2",
36963690
"pathdiff",
36973691
"regex",
36983692
"rustc_arena",
@@ -3722,7 +3716,7 @@ dependencies = [
37223716
"thin-vec",
37233717
"thorin-dwp",
37243718
"tracing",
3725-
"wasm-encoder 0.200.0",
3719+
"wasm-encoder 0.210.0",
37263720
"windows",
37273721
]
37283722

@@ -4675,7 +4669,7 @@ name = "rustc_target"
46754669
version = "0.0.0"
46764670
dependencies = [
46774671
"bitflags 2.5.0",
4678-
"object 0.32.2",
4672+
"object 0.36.2",
46794673
"rustc_abi",
46804674
"rustc_data_structures",
46814675
"rustc_feature",
@@ -4832,6 +4826,7 @@ dependencies = [
48324826
"tracing",
48334827
"tracing-subscriber",
48344828
"tracing-tree",
4829+
"unicode-segmentation",
48354830
]
48364831

48374832
[[package]]
@@ -4960,12 +4955,11 @@ dependencies = [
49604955

49614956
[[package]]
49624957
name = "ruzstd"
4963-
version = "0.6.0"
4958+
version = "0.7.0"
49644959
source = "registry+https://github.com/rust-lang/crates.io-index"
4965-
checksum = "5174a470eeb535a721ae9fdd6e291c2411a906b96592182d05217591d5c5cf7b"
4960+
checksum = "5022b253619b1ba797f243056276bed8ed1a73b0f5a7ce7225d524067644bf8f"
49664961
dependencies = [
49674962
"byteorder",
4968-
"derive_more",
49694963
"twox-hash",
49704964
]
49714965

@@ -5252,7 +5246,7 @@ dependencies = [
52525246
"hermit-abi 0.4.0",
52535247
"libc",
52545248
"miniz_oxide",
5255-
"object 0.36.0",
5249+
"object 0.36.2",
52565250
"panic_abort",
52575251
"panic_unwind",
52585252
"profiler_builtins",
@@ -6188,15 +6182,6 @@ dependencies = [
61886182
"wasm-component-ld",
61896183
]
61906184

6191-
[[package]]
6192-
name = "wasm-encoder"
6193-
version = "0.200.0"
6194-
source = "registry+https://github.com/rust-lang/crates.io-index"
6195-
checksum = "b9e3fb0c8fbddd78aa6095b850dfeedbc7506cf5f81e633f69cf8f2333ab84b9"
6196-
dependencies = [
6197-
"leb128",
6198-
]
6199-
62006185
[[package]]
62016186
name = "wasm-encoder"
62026187
version = "0.210.0"
@@ -6233,26 +6218,26 @@ dependencies = [
62336218

62346219
[[package]]
62356220
name = "wasmparser"
6236-
version = "0.118.2"
6221+
version = "0.210.0"
62376222
source = "registry+https://github.com/rust-lang/crates.io-index"
6238-
checksum = "77f1154f1ab868e2a01d9834a805faca7bf8b50d041b4ca714d005d0dab1c50c"
6223+
checksum = "a7bbcd21e7581619d9f6ca00f8c4f08f1cacfe58bf63f83af57cd0476f1026f5"
62396224
dependencies = [
6225+
"ahash",
6226+
"bitflags 2.5.0",
6227+
"hashbrown",
62406228
"indexmap",
62416229
"semver",
6230+
"serde",
62426231
]
62436232

62446233
[[package]]
62456234
name = "wasmparser"
6246-
version = "0.210.0"
6235+
version = "0.214.0"
62476236
source = "registry+https://github.com/rust-lang/crates.io-index"
6248-
checksum = "a7bbcd21e7581619d9f6ca00f8c4f08f1cacfe58bf63f83af57cd0476f1026f5"
6237+
checksum = "5309c1090e3e84dad0d382f42064e9933fdaedb87e468cc239f0eabea73ddcb6"
62496238
dependencies = [
6250-
"ahash",
62516239
"bitflags 2.5.0",
6252-
"hashbrown",
62536240
"indexmap",
6254-
"semver",
6255-
"serde",
62566241
]
62576242

62586243
[[package]]

compiler/rustc_abi/src/layout.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
use std::borrow::{Borrow, Cow};
2-
use std::cmp;
32
use std::fmt::{self, Write};
4-
use std::iter;
5-
use std::ops::Bound;
6-
use std::ops::Deref;
3+
use std::ops::{Bound, Deref};
4+
use std::{cmp, iter};
75

86
use rustc_index::Idx;
97
use tracing::debug;
@@ -982,7 +980,8 @@ fn univariant<
982980
if repr.can_randomize_type_layout() && cfg!(feature = "randomize") {
983981
#[cfg(feature = "randomize")]
984982
{
985-
use rand::{seq::SliceRandom, SeedableRng};
983+
use rand::seq::SliceRandom;
984+
use rand::SeedableRng;
986985
// `ReprOptions.field_shuffle_seed` is a deterministic seed we can use to randomize field
987986
// ordering.
988987
let mut rng =

compiler/rustc_abi/src/lib.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,20 @@
66
// tidy-alphabetical-end
77

88
use std::fmt;
9+
#[cfg(feature = "nightly")]
10+
use std::iter::Step;
911
use std::num::{NonZeroUsize, ParseIntError};
1012
use std::ops::{Add, AddAssign, Mul, RangeInclusive, Sub};
1113
use std::str::FromStr;
1214

1315
use bitflags::bitflags;
14-
use rustc_index::{Idx, IndexSlice, IndexVec};
15-
1616
#[cfg(feature = "nightly")]
1717
use rustc_data_structures::stable_hasher::StableOrd;
18+
use rustc_index::{Idx, IndexSlice, IndexVec};
1819
#[cfg(feature = "nightly")]
1920
use rustc_macros::HashStable_Generic;
2021
#[cfg(feature = "nightly")]
2122
use rustc_macros::{Decodable_Generic, Encodable_Generic};
22-
#[cfg(feature = "nightly")]
23-
use std::iter::Step;
2423

2524
mod layout;
2625
#[cfg(test)]

compiler/rustc_arena/src/lib.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,14 @@
2727
#![feature(strict_provenance)]
2828
// tidy-alphabetical-end
2929

30-
use smallvec::SmallVec;
31-
3230
use std::alloc::Layout;
3331
use std::cell::{Cell, RefCell};
3432
use std::marker::PhantomData;
3533
use std::mem::{self, MaybeUninit};
3634
use std::ptr::{self, NonNull};
37-
use std::slice;
38-
use std::{cmp, intrinsics};
35+
use std::{cmp, intrinsics, slice};
36+
37+
use smallvec::SmallVec;
3938

4039
/// This calls the passed function while ensuring it won't be inlined into the caller.
4140
#[inline(never)]

compiler/rustc_arena/src/tests.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
extern crate test;
2-
use super::TypedArena;
32
use std::cell::Cell;
3+
44
use test::Bencher;
55

6+
use super::TypedArena;
7+
68
#[allow(dead_code)]
79
#[derive(Debug, Eq, PartialEq)]
810
struct Point {

compiler/rustc_ast/src/ast.rs

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,9 @@
1818
//! - [`Attribute`]: Metadata associated with item.
1919
//! - [`UnOp`], [`BinOp`], and [`BinOpKind`]: Unary and binary operators.
2020
21-
pub use crate::format::*;
22-
pub use crate::util::parser::ExprPrecedence;
23-
pub use rustc_span::AttrId;
24-
pub use GenericArgs::*;
25-
pub use UnsafeSource::*;
21+
use std::borrow::Cow;
22+
use std::{cmp, fmt, mem};
2623

27-
use crate::ptr::P;
28-
use crate::token::{self, CommentKind, Delimiter};
29-
use crate::tokenstream::{DelimSpan, LazyAttrTokenStream, TokenStream};
3024
pub use rustc_ast_ir::{Movability, Mutability};
3125
use rustc_data_structures::packed::Pu128;
3226
use rustc_data_structures::stable_hasher::{HashStable, StableHasher};
@@ -35,12 +29,17 @@ use rustc_data_structures::sync::Lrc;
3529
use rustc_macros::{Decodable, Encodable, HashStable_Generic};
3630
use rustc_span::source_map::{respan, Spanned};
3731
use rustc_span::symbol::{kw, sym, Ident, Symbol};
32+
pub use rustc_span::AttrId;
3833
use rustc_span::{ErrorGuaranteed, Span, DUMMY_SP};
39-
use std::borrow::Cow;
40-
use std::cmp;
41-
use std::fmt;
42-
use std::mem;
4334
use thin_vec::{thin_vec, ThinVec};
35+
pub use GenericArgs::*;
36+
pub use UnsafeSource::*;
37+
38+
pub use crate::format::*;
39+
use crate::ptr::P;
40+
use crate::token::{self, CommentKind, Delimiter};
41+
use crate::tokenstream::{DelimSpan, LazyAttrTokenStream, TokenStream};
42+
pub use crate::util::parser::ExprPrecedence;
4443

4544
/// A "Label" is an identifier of some point in sources,
4645
/// e.g. in the following code:
@@ -2266,6 +2265,11 @@ bitflags::bitflags! {
22662265
}
22672266

22682267
impl InlineAsmOptions {
2268+
pub const COUNT: usize = Self::all().bits().count_ones() as usize;
2269+
2270+
pub const GLOBAL_OPTIONS: Self = Self::ATT_SYNTAX.union(Self::RAW);
2271+
pub const NAKED_OPTIONS: Self = Self::ATT_SYNTAX.union(Self::RAW).union(Self::NORETURN);
2272+
22692273
pub fn human_readable_names(&self) -> Vec<&'static str> {
22702274
let mut options = vec![];
22712275

@@ -3486,8 +3490,9 @@ pub type ForeignItem = Item<ForeignItemKind>;
34863490
// Some nodes are used a lot. Make sure they don't unintentionally get bigger.
34873491
#[cfg(target_pointer_width = "64")]
34883492
mod size_asserts {
3489-
use super::*;
34903493
use rustc_data_structures::static_assert_size;
3494+
3495+
use super::*;
34913496
// tidy-alphabetical-start
34923497
static_assert_size!(AssocItem, 88);
34933498
static_assert_size!(AssocItemKind, 16);

compiler/rustc_ast/src/ast_traits.rs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@
22
//! typically those used in AST fragments during macro expansion.
33
//! The traits are not implemented exhaustively, only when actually necessary.
44
5+
use std::fmt;
6+
use std::marker::PhantomData;
7+
58
use crate::ptr::P;
69
use crate::token::Nonterminal;
710
use crate::tokenstream::LazyAttrTokenStream;
8-
use crate::{Arm, Crate, ExprField, FieldDef, GenericParam, Param, PatField, Variant};
9-
use crate::{AssocItem, Expr, ForeignItem, Item, NodeId};
10-
use crate::{AttrItem, AttrKind, Block, Pat, Path, Ty, Visibility};
11-
use crate::{AttrVec, Attribute, Stmt, StmtKind};
12-
13-
use std::fmt;
14-
use std::marker::PhantomData;
11+
use crate::{
12+
Arm, AssocItem, AttrItem, AttrKind, AttrVec, Attribute, Block, Crate, Expr, ExprField,
13+
FieldDef, ForeignItem, GenericParam, Item, NodeId, Param, Pat, PatField, Path, Stmt, StmtKind,
14+
Ty, Variant, Visibility,
15+
};
1516

1617
/// A utility trait to reduce boilerplate.
1718
/// Standard `Deref(Mut)` cannot be reused due to coherence.

compiler/rustc_ast/src/attr/mod.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
//! Functions dealing with attributes and meta items.
22
3+
use std::iter;
4+
use std::sync::atomic::{AtomicU32, Ordering};
5+
6+
use rustc_index::bit_set::GrowableBitSet;
7+
use rustc_span::symbol::{sym, Ident, Symbol};
8+
use rustc_span::Span;
9+
use smallvec::{smallvec, SmallVec};
10+
use thin_vec::{thin_vec, ThinVec};
11+
312
use crate::ast::{
4-
AttrArgs, AttrArgsEq, AttrId, AttrItem, AttrKind, AttrStyle, AttrVec, Attribute, Safety,
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,
516
};
6-
use crate::ast::{DelimArgs, Expr, ExprKind, LitKind, MetaItemLit};
7-
use crate::ast::{MetaItem, MetaItemKind, NestedMetaItem, NormalAttr};
8-
use crate::ast::{Path, PathSegment, DUMMY_NODE_ID};
917
use crate::ptr::P;
1018
use crate::token::{self, CommentKind, Delimiter, Token};
11-
use crate::tokenstream::{DelimSpan, Spacing, TokenTree};
12-
use crate::tokenstream::{LazyAttrTokenStream, TokenStream};
19+
use crate::tokenstream::{DelimSpan, LazyAttrTokenStream, Spacing, TokenStream, TokenTree};
1320
use crate::util::comments;
1421
use crate::util::literal::escape_string_symbol;
15-
use rustc_index::bit_set::GrowableBitSet;
16-
use rustc_span::symbol::{sym, Ident, Symbol};
17-
use rustc_span::Span;
18-
use smallvec::{smallvec, SmallVec};
19-
use std::iter;
20-
use std::sync::atomic::{AtomicU32, Ordering};
21-
use thin_vec::{thin_vec, ThinVec};
2222

2323
pub struct MarkedAttrs(GrowableBitSet<AttrId>);
2424

0 commit comments

Comments
 (0)