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

Commit 325af25

Browse files
TL note: current means target
1 parent 28628f3 commit 325af25

35 files changed

+43
-43
lines changed

compiler/rustc_hir_analysis/messages.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ hir_analysis_tait_forward_compat2 = item does not constrain `{$opaque_type}`, bu
497497
498498
hir_analysis_target_feature_on_main = `main` function is not allowed to have `#[target_feature]`
499499
500-
hir_analysis_too_large_static = extern static is too large for the current architecture
500+
hir_analysis_too_large_static = extern static is too large for the target architecture
501501
502502
hir_analysis_track_caller_on_main = `main` function is not allowed to be `#[track_caller]`
503503
.suggestion = remove this annotation

compiler/rustc_hir_typeck/src/intrinsicck.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
9595
format!("{v} bits")
9696
} else {
9797
// `u128` should definitely be able to hold the size of different architectures
98-
// larger sizes should be reported as error `are too big for the current architecture`
98+
// larger sizes should be reported as error `are too big for the target architecture`
9999
// otherwise we have a bug somewhere
100100
bug!("{:?} overflow for u128", size)
101101
}

compiler/rustc_middle/messages.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,5 +103,5 @@ middle_unknown_layout =
103103
the type `{$ty}` has an unknown layout
104104
105105
middle_values_too_big =
106-
values of the type `{$ty}` are too big for the current architecture
106+
values of the type `{$ty}` are too big for the target architecture
107107
middle_written_to_path = the full type name has been written to '{$path}'

compiler/rustc_middle/src/ty/layout.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ impl<'tcx> fmt::Display for LayoutError<'tcx> {
264264
match *self {
265265
LayoutError::Unknown(ty) => write!(f, "the type `{ty}` has an unknown layout"),
266266
LayoutError::SizeOverflow(ty) => {
267-
write!(f, "values of the type `{ty}` are too big for the current architecture")
267+
write!(f, "values of the type `{ty}` are too big for the target architecture")
268268
}
269269
LayoutError::NormalizationFailure(t, e) => write!(
270270
f,

compiler/rustc_trait_selection/src/error_reporting/traits/fulfillment_errors.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2269,12 +2269,12 @@ impl<'a, 'tcx> TypeErrCtxt<'a, 'tcx> {
22692269
}
22702270
rustc_transmute::Reason::SrcSizeOverflow => {
22712271
format!(
2272-
"values of the type `{src}` are too big for the current architecture"
2272+
"values of the type `{src}` are too big for the target architecture"
22732273
)
22742274
}
22752275
rustc_transmute::Reason::DstSizeOverflow => {
22762276
format!(
2277-
"values of the type `{dst}` are too big for the current architecture"
2277+
"values of the type `{dst}` are too big for the target architecture"
22782278
)
22792279
}
22802280
rustc_transmute::Reason::DstHasStricterAlignment {

tests/ui/const-generics/transmute-fail.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,17 @@ error[E0512]: cannot transmute between types of different sizes, or dependently-
3434
LL | std::mem::transmute(v)
3535
| ^^^^^^^^^^^^^^^^^^^
3636
|
37-
= note: source type: `[[[u32; 8888888]; 9999999]; 777777777]` (values of the type $REALLY_TOO_BIG are too big for the current architecture)
38-
= note: target type: `[[[u32; 9999999]; 777777777]; 8888888]` (values of the type $REALLY_TOO_BIG are too big for the current architecture)
37+
= note: source type: `[[[u32; 8888888]; 9999999]; 777777777]` (values of the type $REALLY_TOO_BIG are too big for the target architecture)
38+
= note: target type: `[[[u32; 9999999]; 777777777]; 8888888]` (values of the type $REALLY_TOO_BIG are too big for the target architecture)
3939

4040
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
4141
--> $DIR/transmute-fail.rs:40:14
4242
|
4343
LL | unsafe { std::mem::transmute(v) }
4444
| ^^^^^^^^^^^^^^^^^^^
4545
|
46-
= note: source type: `[[[u32; 8888888]; 9999999]; 777777777]` (values of the type $REALLY_TOO_BIG are too big for the current architecture)
47-
= note: target type: `[[[u32; 9999999]; 777777777]; 239]` (values of the type $REALLY_TOO_BIG are too big for the current architecture)
46+
= note: source type: `[[[u32; 8888888]; 9999999]; 777777777]` (values of the type $REALLY_TOO_BIG are too big for the target architecture)
47+
= note: target type: `[[[u32; 9999999]; 777777777]; 239]` (values of the type $REALLY_TOO_BIG are too big for the target architecture)
4848

4949
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
5050
--> $DIR/transmute-fail.rs:46:9

tests/ui/debuginfo/debuginfo-type-name-layout-ice-94961-1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
//@ compile-flags:-C debuginfo=2
55
//@ build-fail
6-
//@ error-pattern: too big for the current architecture
6+
//@ error-pattern: too big for the target architecture
77
//@ normalize-stderr-64bit: "18446744073709551615" -> "SIZE"
88
//@ normalize-stderr-32bit: "4294967295" -> "SIZE"
99

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: values of the type `[u8; usize::MAX]` are too big for the current architecture
1+
error: values of the type `[u8; usize::MAX]` are too big for the target architecture
22

33
error: aborting due to 1 previous error
44

tests/ui/debuginfo/debuginfo-type-name-layout-ice-94961-2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
//@ compile-flags:-C debuginfo=2
77
//@ build-fail
8-
//@ error-pattern: too big for the current architecture
8+
//@ error-pattern: too big for the target architecture
99
//@ normalize-stderr-64bit: "18446744073709551615" -> "SIZE"
1010
//@ normalize-stderr-32bit: "4294967295" -> "SIZE"
1111

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: values of the type `[u8; usize::MAX]` are too big for the current architecture
1+
error: values of the type `[u8; usize::MAX]` are too big for the target architecture
22

33
error: aborting due to 1 previous error
44

0 commit comments

Comments
 (0)