Skip to content

Commit 0655e6a

Browse files
authored
Merge branch 'rust-lang:master' into improve-format-docs
2 parents ecf08b3 + c8b8378 commit 0655e6a

File tree

1,000 files changed

+14836
-8981
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,000 files changed

+14836
-8981
lines changed

Cargo.lock

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -720,6 +720,7 @@ dependencies = [
720720
"miropt-test-tools",
721721
"regex",
722722
"rustfix",
723+
"semver",
723724
"serde",
724725
"serde_json",
725726
"tracing",
@@ -3301,6 +3302,7 @@ version = "0.0.0"
33013302
dependencies = [
33023303
"itertools",
33033304
"rustc_ast",
3305+
"rustc_data_structures",
33043306
"rustc_lexer",
33053307
"rustc_span",
33063308
"thin-vec",
@@ -3621,6 +3623,7 @@ version = "0.0.0"
36213623
dependencies = [
36223624
"annotate-snippets 0.11.4",
36233625
"derive_setters",
3626+
"rustc_abi",
36243627
"rustc_ast",
36253628
"rustc_ast_pretty",
36263629
"rustc_data_structures",
@@ -3718,6 +3721,7 @@ name = "rustc_hir_analysis"
37183721
version = "0.0.0"
37193722
dependencies = [
37203723
"itertools",
3724+
"rustc_abi",
37213725
"rustc_arena",
37223726
"rustc_ast",
37233727
"rustc_attr",
@@ -3906,6 +3910,7 @@ dependencies = [
39063910
name = "rustc_lint"
39073911
version = "0.0.0"
39083912
dependencies = [
3913+
"rustc_abi",
39093914
"rustc_ast",
39103915
"rustc_ast_pretty",
39113916
"rustc_attr",
@@ -3980,6 +3985,7 @@ dependencies = [
39803985
"bitflags 2.6.0",
39813986
"libloading",
39823987
"odht",
3988+
"rustc_abi",
39833989
"rustc_ast",
39843990
"rustc_attr",
39853991
"rustc_data_structures",
@@ -4074,6 +4080,7 @@ version = "0.0.0"
40744080
dependencies = [
40754081
"polonius-engine",
40764082
"regex",
4083+
"rustc_abi",
40774084
"rustc_ast",
40784085
"rustc_data_structures",
40794086
"rustc_errors",
@@ -4095,6 +4102,7 @@ version = "0.0.0"
40954102
dependencies = [
40964103
"either",
40974104
"itertools",
4105+
"rustc_abi",
40984106
"rustc_arena",
40994107
"rustc_ast",
41004108
"rustc_attr",
@@ -4187,6 +4195,7 @@ dependencies = [
41874195
name = "rustc_passes"
41884196
version = "0.0.0"
41894197
dependencies = [
4198+
"rustc_abi",
41904199
"rustc_ast",
41914200
"rustc_ast_pretty",
41924201
"rustc_attr",
@@ -4213,6 +4222,7 @@ name = "rustc_pattern_analysis"
42134222
version = "0.0.0"
42144223
dependencies = [
42154224
"rustc-hash 2.0.0",
4225+
"rustc_abi",
42164226
"rustc_apfloat",
42174227
"rustc_arena",
42184228
"rustc_data_structures",
@@ -4352,6 +4362,7 @@ dependencies = [
43524362
"bitflags 2.6.0",
43534363
"getopts",
43544364
"libc",
4365+
"rustc_abi",
43554366
"rustc_ast",
43564367
"rustc_data_structures",
43574368
"rustc_errors",
@@ -4415,6 +4426,7 @@ version = "0.0.0"
44154426
dependencies = [
44164427
"punycode",
44174428
"rustc-demangle",
4429+
"rustc_abi",
44184430
"rustc_data_structures",
44194431
"rustc_errors",
44204432
"rustc_hir",

compiler/rustc_abi/src/callconv.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ mod abi {
66
#[cfg(feature = "nightly")]
77
use rustc_macros::HashStable_Generic;
88

9-
#[cfg(feature = "nightly")]
10-
use crate::{Abi, FieldsShape, TyAbiInterface, TyAndLayout};
119
use crate::{Align, HasDataLayout, Size};
10+
#[cfg(feature = "nightly")]
11+
use crate::{BackendRepr, FieldsShape, TyAbiInterface, TyAndLayout};
1212

1313
#[cfg_attr(feature = "nightly", derive(HashStable_Generic))]
1414
#[derive(Copy, Clone, PartialEq, Eq, Hash, Debug)]
@@ -128,27 +128,27 @@ impl<'a, Ty> TyAndLayout<'a, Ty> {
128128
where
129129
Ty: TyAbiInterface<'a, C> + Copy,
130130
{
131-
match self.abi {
132-
Abi::Uninhabited => Err(Heterogeneous),
131+
match self.backend_repr {
132+
BackendRepr::Uninhabited => Err(Heterogeneous),
133133

134134
// The primitive for this algorithm.
135-
Abi::Scalar(scalar) => {
135+
BackendRepr::Scalar(scalar) => {
136136
let kind = match scalar.primitive() {
137137
abi::Int(..) | abi::Pointer(_) => RegKind::Integer,
138138
abi::Float(_) => RegKind::Float,
139139
};
140140
Ok(HomogeneousAggregate::Homogeneous(Reg { kind, size: self.size }))
141141
}
142142

143-
Abi::Vector { .. } => {
143+
BackendRepr::Vector { .. } => {
144144
assert!(!self.is_zst());
145145
Ok(HomogeneousAggregate::Homogeneous(Reg {
146146
kind: RegKind::Vector,
147147
size: self.size,
148148
}))
149149
}
150150

151-
Abi::ScalarPair(..) | Abi::Aggregate { sized: true } => {
151+
BackendRepr::ScalarPair(..) | BackendRepr::Memory { sized: true } => {
152152
// Helper for computing `homogeneous_aggregate`, allowing a custom
153153
// starting offset (used below for handling variants).
154154
let from_fields_at =
@@ -246,7 +246,7 @@ impl<'a, Ty> TyAndLayout<'a, Ty> {
246246
Ok(result)
247247
}
248248
}
249-
Abi::Aggregate { sized: false } => Err(Heterogeneous),
249+
BackendRepr::Memory { sized: false } => Err(Heterogeneous),
250250
}
251251
}
252252
}

0 commit comments

Comments
 (0)