Skip to content

Commit e70d347

Browse files
committed
Merge remote-tracking branch 'origin' into free-runners-remove-more-dirs
2 parents eadaaf2 + 8c61cd4 commit e70d347

File tree

2,928 files changed

+45849
-27303
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,928 files changed

+45849
-27303
lines changed

.editorconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ end_of_line = lf
99
charset = utf-8
1010
trim_trailing_whitespace = true
1111
insert_final_newline = true
12+
13+
[!src/llvm-project]
1214
indent_style = space
1315
indent_size = 4
1416

.git-blame-ignore-revs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,5 @@ ec2cc761bc7067712ecc7734502f703fe3b024c8
2929
99cb0c6bc399fb94a0ddde7e9b38e9c00d523bad
3030
# reformat with rustfmt edition 2024
3131
c682aa162b0d41e21cc6748f4fecfe01efb69d1f
32+
# reformat with updated edition 2024
33+
1fcae03369abb4c2cc180cd5a49e1f4440a81300

.github/workflows/ci.yml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,6 @@ jobs:
6262
name: ${{ matrix.full_name }}
6363
needs: [ calculate_matrix ]
6464
runs-on: "${{ matrix.os }}"
65-
defaults:
66-
run:
67-
shell: ${{ contains(matrix.os, 'windows') && 'msys2 {0}' || 'bash' }}
6865
timeout-minutes: 360
6966
env:
7067
CI_JOB_NAME: ${{ matrix.name }}
@@ -80,22 +77,6 @@ jobs:
8077
# Check the `calculate_matrix` job to see how is the matrix defined.
8178
include: ${{ fromJSON(needs.calculate_matrix.outputs.jobs) }}
8279
steps:
83-
- if: contains(matrix.os, 'windows')
84-
uses: msys2/[email protected]
85-
with:
86-
# i686 jobs use mingw32. x86_64 and cross-compile jobs use mingw64.
87-
msystem: ${{ contains(matrix.name, 'i686') && 'mingw32' || 'mingw64' }}
88-
# don't try to download updates for already installed packages
89-
update: false
90-
# don't try to use the msys that comes built-in to the github runner,
91-
# so we can control what is installed (i.e. not python)
92-
release: true
93-
# Inherit the full path from the Windows environment, with MSYS2's */bin/
94-
# dirs placed in front. This lets us run Windows-native Python etc.
95-
path-type: inherit
96-
install: >
97-
make
98-
9980
- name: disable git crlf conversion
10081
run: git config --global core.autocrlf false
10182

Cargo.lock

Lines changed: 24 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,9 @@ name = "anyhow"
186186
version = "1.0.95"
187187
source = "registry+https://github.com/rust-lang/crates.io-index"
188188
checksum = "34ac096ce696dc2fcabef30516bb13c0a68a11d30131d3df6f04711467681b04"
189+
dependencies = [
190+
"backtrace",
191+
]
189192

190193
[[package]]
191194
name = "ar_archive_writer"
@@ -417,9 +420,9 @@ version = "0.1.0"
417420

418421
[[package]]
419422
name = "cc"
420-
version = "1.2.7"
423+
version = "1.2.13"
421424
source = "registry+https://github.com/rust-lang/crates.io-index"
422-
checksum = "a012a0df96dd6d06ba9a1b29d6402d1a5d77c6befd2566afdc26e10603dc93d7"
425+
checksum = "c7777341816418c02e033934a09f20dc0ccaf65a5201ef8a450ae0105a573fda"
423426
dependencies = [
424427
"shlex",
425428
]
@@ -1095,9 +1098,9 @@ dependencies = [
10951098

10961099
[[package]]
10971100
name = "elsa"
1098-
version = "1.7.1"
1101+
version = "1.11.0"
10991102
source = "registry+https://github.com/rust-lang/crates.io-index"
1100-
checksum = "848fe615fbb0a74d9ae68dcaa510106d32e37d9416207bbea4bd008bd89c47ed"
1103+
checksum = "2343daaeabe09879d4ea058bb4f1e63da3fc07dadc6634e01bda1b3d6a9d9d2b"
11011104
dependencies = [
11021105
"stable_deref_trait",
11031106
]
@@ -1196,13 +1199,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
11961199
checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be"
11971200

11981201
[[package]]
1199-
name = "field-offset"
1200-
version = "0.3.6"
1201-
source = "registry+https://github.com/rust-lang/crates.io-index"
1202-
checksum = "38e2275cc4e4fc009b0669731a1e5ab7ebf11f469eaede2bab9309a5b4d6057f"
1202+
name = "features-status-dump"
1203+
version = "0.1.0"
12031204
dependencies = [
1204-
"memoffset",
1205-
"rustc_version",
1205+
"anyhow",
1206+
"clap",
1207+
"serde",
1208+
"serde_json",
1209+
"tidy",
12061210
]
12071211

12081212
[[package]]
@@ -2281,15 +2285,6 @@ dependencies = [
22812285
"libc",
22822286
]
22832287

2284-
[[package]]
2285-
name = "memoffset"
2286-
version = "0.9.1"
2287-
source = "registry+https://github.com/rust-lang/crates.io-index"
2288-
checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
2289-
dependencies = [
2290-
"autocfg",
2291-
]
2292-
22932288
[[package]]
22942289
name = "mime"
22952290
version = "0.3.17"
@@ -2308,9 +2303,9 @@ dependencies = [
23082303

23092304
[[package]]
23102305
name = "minifier"
2311-
version = "0.3.2"
2306+
version = "0.3.4"
23122307
source = "registry+https://github.com/rust-lang/crates.io-index"
2313-
checksum = "bd559bbf5d350ac7f2c1cf92ed71a869b847a92bce0c1318b47932a5b5f65cdd"
2308+
checksum = "1cf47565b1430f5fe6c81d3afcb4b835271348d7eb35294a4d592e38dd09ea22"
23142309

23152310
[[package]]
23162311
name = "minimal-lexical"
@@ -3273,13 +3268,6 @@ dependencies = [
32733268
"tikv-jemalloc-sys",
32743269
]
32753270

3276-
[[package]]
3277-
name = "rustc-perf-wrapper"
3278-
version = "0.1.0"
3279-
dependencies = [
3280-
"clap",
3281-
]
3282-
32833271
[[package]]
32843272
name = "rustc-rayon"
32853273
version = "0.5.1"
@@ -3329,7 +3317,6 @@ dependencies = [
33293317
"rand 0.8.5",
33303318
"rand_xoshiro",
33313319
"rustc_data_structures",
3332-
"rustc_feature",
33333320
"rustc_index",
33343321
"rustc_macros",
33353322
"rustc_serialize",
@@ -3386,10 +3373,12 @@ dependencies = [
33863373
name = "rustc_ast_lowering"
33873374
version = "0.0.0"
33883375
dependencies = [
3376+
"rustc_abi",
33893377
"rustc_ast",
33903378
"rustc_ast_pretty",
33913379
"rustc_data_structures",
33923380
"rustc_errors",
3381+
"rustc_feature",
33933382
"rustc_fluent_macro",
33943383
"rustc_hir",
33953384
"rustc_index",
@@ -3408,6 +3397,7 @@ name = "rustc_ast_passes"
34083397
version = "0.0.0"
34093398
dependencies = [
34103399
"itertools",
3400+
"rustc_abi",
34113401
"rustc_ast",
34123402
"rustc_ast_pretty",
34133403
"rustc_attr_parsing",
@@ -3693,6 +3683,7 @@ version = "0.0.0"
36933683
dependencies = [
36943684
"ctrlc",
36953685
"libc",
3686+
"rustc_abi",
36963687
"rustc_ast",
36973688
"rustc_ast_lowering",
36983689
"rustc_ast_passes",
@@ -4001,6 +3992,7 @@ version = "0.0.0"
40013992
dependencies = [
40023993
"rustc-rayon",
40033994
"rustc-rayon-core",
3995+
"rustc_abi",
40043996
"rustc_ast",
40053997
"rustc_ast_lowering",
40063998
"rustc_ast_passes",
@@ -4050,6 +4042,7 @@ name = "rustc_lexer"
40504042
version = "0.0.0"
40514043
dependencies = [
40524044
"expect-test",
4045+
"memchr",
40534046
"unicode-properties",
40544047
"unicode-xid",
40554048
]
@@ -4162,7 +4155,6 @@ version = "0.0.0"
41624155
dependencies = [
41634156
"bitflags",
41644157
"either",
4165-
"field-offset",
41664158
"gsgdt",
41674159
"polonius-engine",
41684160
"rustc-rayon-core",
@@ -4346,6 +4338,7 @@ version = "0.0.0"
43464338
dependencies = [
43474339
"rustc_abi",
43484340
"rustc_ast",
4341+
"rustc_ast_lowering",
43494342
"rustc_ast_pretty",
43504343
"rustc_attr_parsing",
43514344
"rustc_data_structures",
@@ -4410,7 +4403,6 @@ dependencies = [
44104403
name = "rustc_query_impl"
44114404
version = "0.0.0"
44124405
dependencies = [
4413-
"field-offset",
44144406
"measureme",
44154407
"rustc_data_structures",
44164408
"rustc_errors",
@@ -5418,6 +5410,7 @@ dependencies = [
54185410
"regex",
54195411
"rustc-hash 2.1.0",
54205412
"semver",
5413+
"serde",
54215414
"similar",
54225415
"termcolor",
54235416
"walkdir",

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ members = [
4545
"src/tools/rustdoc-gui-test",
4646
"src/tools/opt-dist",
4747
"src/tools/coverage-dump",
48-
"src/tools/rustc-perf-wrapper",
4948
"src/tools/wasm-component-ld",
49+
"src/tools/features-status-dump",
5050
]
5151

5252
exclude = [

compiler/rustc_abi/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ bitflags = "2.4.1"
99
rand = { version = "0.8.4", default-features = false, optional = true }
1010
rand_xoshiro = { version = "0.6.0", optional = true }
1111
rustc_data_structures = { path = "../rustc_data_structures", optional = true }
12-
rustc_feature = { path = "../rustc_feature", optional = true }
1312
rustc_index = { path = "../rustc_index", default-features = false }
1413
rustc_macros = { path = "../rustc_macros", optional = true }
1514
rustc_serialize = { path = "../rustc_serialize", optional = true }
@@ -24,7 +23,6 @@ default = ["nightly", "randomize"]
2423
# without depending on rustc_data_structures, rustc_macros and rustc_serialize
2524
nightly = [
2625
"dep:rustc_data_structures",
27-
"dep:rustc_feature",
2826
"dep:rustc_macros",
2927
"dep:rustc_serialize",
3028
"dep:rustc_span",

compiler/rustc_abi/src/callconv.rs

Lines changed: 7 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,9 @@
1-
mod abi {
2-
pub(crate) use crate::Primitive::*;
3-
pub(crate) use crate::Variants;
4-
}
5-
6-
#[cfg(feature = "nightly")]
7-
use rustc_macros::HashStable_Generic;
8-
9-
use crate::{Align, HasDataLayout, Size};
101
#[cfg(feature = "nightly")]
11-
use crate::{BackendRepr, FieldsShape, TyAbiInterface, TyAndLayout};
12-
13-
#[cfg_attr(feature = "nightly", derive(HashStable_Generic))]
14-
#[derive(Copy, Clone, PartialEq, Eq, Hash, Debug)]
15-
pub enum RegKind {
16-
Integer,
17-
Float,
18-
Vector,
19-
}
2+
use crate::{BackendRepr, FieldsShape, Primitive, Size, TyAbiInterface, TyAndLayout, Variants};
203

21-
#[cfg_attr(feature = "nightly", derive(HashStable_Generic))]
22-
#[derive(Copy, Clone, PartialEq, Eq, Hash, Debug)]
23-
pub struct Reg {
24-
pub kind: RegKind,
25-
pub size: Size,
26-
}
4+
mod reg;
275

28-
macro_rules! reg_ctor {
29-
($name:ident, $kind:ident, $bits:expr) => {
30-
pub fn $name() -> Reg {
31-
Reg { kind: RegKind::$kind, size: Size::from_bits($bits) }
32-
}
33-
};
34-
}
35-
36-
impl Reg {
37-
reg_ctor!(i8, Integer, 8);
38-
reg_ctor!(i16, Integer, 16);
39-
reg_ctor!(i32, Integer, 32);
40-
reg_ctor!(i64, Integer, 64);
41-
reg_ctor!(i128, Integer, 128);
42-
43-
reg_ctor!(f32, Float, 32);
44-
reg_ctor!(f64, Float, 64);
45-
}
46-
47-
impl Reg {
48-
pub fn align<C: HasDataLayout>(&self, cx: &C) -> Align {
49-
let dl = cx.data_layout();
50-
match self.kind {
51-
RegKind::Integer => match self.size.bits() {
52-
1 => dl.i1_align.abi,
53-
2..=8 => dl.i8_align.abi,
54-
9..=16 => dl.i16_align.abi,
55-
17..=32 => dl.i32_align.abi,
56-
33..=64 => dl.i64_align.abi,
57-
65..=128 => dl.i128_align.abi,
58-
_ => panic!("unsupported integer: {self:?}"),
59-
},
60-
RegKind::Float => match self.size.bits() {
61-
16 => dl.f16_align.abi,
62-
32 => dl.f32_align.abi,
63-
64 => dl.f64_align.abi,
64-
128 => dl.f128_align.abi,
65-
_ => panic!("unsupported float: {self:?}"),
66-
},
67-
RegKind::Vector => dl.vector_align(self.size).abi,
68-
}
69-
}
70-
}
6+
pub use reg::{Reg, RegKind};
717

728
/// Return value from the `homogeneous_aggregate` test function.
739
#[derive(Copy, Clone, Debug)]
@@ -134,8 +70,8 @@ impl<'a, Ty> TyAndLayout<'a, Ty> {
13470
// The primitive for this algorithm.
13571
BackendRepr::Scalar(scalar) => {
13672
let kind = match scalar.primitive() {
137-
abi::Int(..) | abi::Pointer(_) => RegKind::Integer,
138-
abi::Float(_) => RegKind::Float,
73+
Primitive::Int(..) | Primitive::Pointer(_) => RegKind::Integer,
74+
Primitive::Float(_) => RegKind::Float,
13975
};
14076
Ok(HomogeneousAggregate::Homogeneous(Reg { kind, size: self.size }))
14177
}
@@ -206,8 +142,8 @@ impl<'a, Ty> TyAndLayout<'a, Ty> {
206142
let (mut result, mut total) = from_fields_at(*self, Size::ZERO)?;
207143

208144
match &self.variants {
209-
abi::Variants::Single { .. } | abi::Variants::Empty => {}
210-
abi::Variants::Multiple { variants, .. } => {
145+
Variants::Single { .. } | Variants::Empty => {}
146+
Variants::Multiple { variants, .. } => {
211147
// Treat enum variants like union members.
212148
// HACK(eddyb) pretend the `enum` field (discriminant)
213149
// is at the start of every variant (otherwise the gap

0 commit comments

Comments
 (0)