Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4229b80

Browse files
committedFeb 16, 2025
Auto merge of #137111 - jhpratt:rollup-izd98sx, r=jhpratt
Rollup of 5 pull requests Successful merges: - #135797 (Import initial generated 1.85 relnotes) - #135909 (Export kernel descriptor for amdgpu kernels) - #136545 (nvptx64: update default alignment to match LLVM 21) - #137092 (abi_unsupported_vector_types: say which type is the problem) - #137097 (Ignore Self in bounds check for associated types with Self:Sized) r? `@ghost` `@rustbot` modify labels: rollup
2 parents c3fe9e7 + 7884e17 commit 4229b80

22 files changed

+372
-157
lines changed
 

‎RELEASES.md

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,130 @@
1+
Version 1.85.0 (2025-02-20)
2+
==========================
3+
4+
<a id="1.85.0-Language"></a>
5+
6+
Language
7+
--------
8+
- [The 2024 Edition is now stable.](https://github.com/rust-lang/rust/pull/133349)
9+
See [the edition guide](https://doc.rust-lang.org/nightly/edition-guide/rust-2024/index.html) for more details.
10+
- [Stabilize async closures](https://github.com/rust-lang/rust/pull/132706)
11+
See [RFC 3668](https://rust-lang.github.io/rfcs/3668-async-closures.html) for more details.
12+
- [Stabilize `#[diagnostic::do_not_recommend]`](https://github.com/rust-lang/rust/pull/132056)
13+
- [Add `unpredictable_function_pointer_comparisons` lint to warn against function pointer comparisons](https://github.com/rust-lang/rust/pull/118833)
14+
- [Lint on combining `#[no_mangle]` and `#[export_name]` attributes.](https://github.com/rust-lang/rust/pull/131558)
15+
16+
<a id="1.85.0-Compiler"></a>
17+
18+
Compiler
19+
--------
20+
- [The unstable flag `-Zpolymorphize` has been removed](https://github.com/rust-lang/rust/pull/133883), see https://github.com/rust-lang/compiler-team/issues/810 for some background.
21+
22+
<a id="1.85.0-Platform-Support"></a>
23+
24+
Platform Support
25+
----------------
26+
- [Promote `powerpc64le-unknown-linux-musl` to tier 2 with host tools](https://github.com/rust-lang/rust/pull/133801)
27+
28+
Refer to Rust's [platform support page][platform-support-doc]
29+
for more information on Rust's tiered platform support.
30+
31+
<a id="1.85.0-Libraries"></a>
32+
33+
Libraries
34+
---------
35+
- [Panics in the standard library now have a leading `library/` in their path](https://github.com/rust-lang/rust/pull/132390)
36+
- [`std::env::home_dir()` on Windows now ignores the non-standard `$HOME` environment variable](https://github.com/rust-lang/rust/pull/132515)
37+
It will be un-deprecated in a subsequent release.
38+
- [Add `AsyncFn*` to the prelude in all editions.](https://github.com/rust-lang/rust/pull/132611)
39+
40+
<a id="1.85.0-Stabilized-APIs"></a>
41+
42+
Stabilized APIs
43+
---------------
44+
45+
- [`BuildHasherDefault::new`](https://doc.rust-lang.org/stable/std/hash/struct.BuildHasherDefault.html#method.new)
46+
- [`ptr::fn_addr_eq`](https://doc.rust-lang.org/std/ptr/fn.fn_addr_eq.html)
47+
- [`io::ErrorKind::QuotaExceeded`](https://doc.rust-lang.org/stable/std/io/enum.ErrorKind.html#variant.QuotaExceeded)
48+
- [`io::ErrorKind::CrossesDevices`](https://doc.rust-lang.org/stable/std/io/enum.ErrorKind.html#variant.CrossesDevices)
49+
- [`{float}::midpoint`](https://doc.rust-lang.org/core/primitive.f32.html#method.midpoint)
50+
- [Unsigned `{integer}::midpoint`](https://doc.rust-lang.org/std/primitive.u64.html#method.midpoint)
51+
- [`NonZeroU*::midpoint`](https://doc.rust-lang.org/std/num/type.NonZeroU32.html#method.midpoint)
52+
- [impl `std::iter::Extend` for tuples with arity 1 through 12](https://doc.rust-lang.org/stable/std/iter/trait.Extend.html#impl-Extend%3C(A,)%3E-for-(EA,))
53+
- [`FromIterator<(A, ...)>` for tuples with arity 1 through 12](https://doc.rust-lang.org/stable/std/iter/trait.FromIterator.html#impl-FromIterator%3C(EA,)%3E-for-(A,))
54+
- [`std::task::Waker::noop`](https://doc.rust-lang.org/stable/std/task/struct.Waker.html#method.noop)
55+
56+
These APIs are now stable in const contexts:
57+
58+
- [`mem::size_of_val`](https://doc.rust-lang.org/stable/std/mem/fn.size_of_val.html)
59+
- [`mem::align_of_val`](https://doc.rust-lang.org/stable/std/mem/fn.align_of_val.html)
60+
- [`Layout::for_value`](https://doc.rust-lang.org/stable/std/alloc/struct.Layout.html#method.for_value)
61+
- [`Layout::align_to`](https://doc.rust-lang.org/stable/std/alloc/struct.Layout.html#method.align_to)
62+
- [`Layout::pad_to_align`](https://doc.rust-lang.org/stable/std/alloc/struct.Layout.html#method.pad_to_align)
63+
- [`Layout::extend`](https://doc.rust-lang.org/stable/std/alloc/struct.Layout.html#method.extend)
64+
- [`Layout::array`](https://doc.rust-lang.org/stable/std/alloc/struct.Layout.html#method.array)
65+
- [`std::mem::swap`](https://doc.rust-lang.org/stable/std/mem/fn.swap.html)
66+
- [`std::ptr::swap`](https://doc.rust-lang.org/stable/std/ptr/fn.swap.html)
67+
- [`NonNull::new`](https://doc.rust-lang.org/stable/std/ptr/struct.NonNull.html#method.new)
68+
- [`HashMap::with_hasher`](https://doc.rust-lang.org/stable/std/collections/struct.HashMap.html#method.with_hasher)
69+
- [`HashSet::with_hasher`](https://doc.rust-lang.org/stable/std/collections/struct.HashSet.html#method.with_hasher)
70+
- [`BuildHasherDefault::new`](https://doc.rust-lang.org/stable/std/hash/struct.BuildHasherDefault.html#method.new)
71+
- [`<float>::recip`](https://doc.rust-lang.org/stable/std/primitive.f32.html#method.recip)
72+
- [`<float>::to_degrees`](https://doc.rust-lang.org/stable/std/primitive.f32.html#method.to_degrees)
73+
- [`<float>::to_radians`](https://doc.rust-lang.org/stable/std/primitive.f32.html#method.to_radians)
74+
- [`<float>::max`](https://doc.rust-lang.org/stable/std/primitive.f32.html#method.max)
75+
- [`<float>::min`](https://doc.rust-lang.org/stable/std/primitive.f32.html#method.min)
76+
- [`<float>::clamp`](https://doc.rust-lang.org/stable/std/primitive.f32.html#method.clamp)
77+
- [`<float>::abs`](https://doc.rust-lang.org/stable/std/primitive.f32.html#method.abs)
78+
- [`<float>::signum`](https://doc.rust-lang.org/stable/std/primitive.f32.html#method.signum)
79+
- [`<float>::copysign`](https://doc.rust-lang.org/stable/std/primitive.f32.html#method.copysign)
80+
- [`MaybeUninit::write`](https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.write)
81+
82+
<a id="1.85.0-Cargo"></a>
83+
84+
Cargo
85+
-----
86+
- [Add future-incompatibility warning against keywords in cfgs and add raw-idents](https://github.com/rust-lang/cargo/pull/14671/)
87+
- [Stabilize higher precedence trailing flags](https://github.com/rust-lang/cargo/pull/14900/)
88+
- [Pass `CARGO_CFG_FEATURE` to build scripts](https://github.com/rust-lang/cargo/pull/14902/)
89+
90+
<a id="1.85.0-Rustdoc"></a>
91+
92+
Rustdoc
93+
-----
94+
- [Doc comment on impl blocks shows the first line, even when the impl block is collapsed](https://github.com/rust-lang/rust/pull/132155)
95+
96+
<a id="1.85.0-Compatibility-Notes"></a>
97+
98+
Compatibility Notes
99+
-------------------
100+
- [`rustc` no longer treats the `test` cfg as a well known check-cfg](https://github.com/rust-lang/rust/pull/131729), instead it is up to the build systems and users of `--check-cfg`[^check-cfg] to set it as a well known cfg using `--check-cfg=cfg(test)`.
101+
This is done to enable build systems like Cargo to set it conditionally, as not all source files are suitable for unit tests.
102+
[Cargo (for now) unconditionally sets the `test` cfg as a well known cfg](https://github.com/rust-lang/cargo/pull/14963).
103+
[^check-cfg]: https://doc.rust-lang.org/nightly/rustc/check-cfg.html
104+
- [Disable potentially incorrect type inference if there are trivial and non-trivial where-clauses](https://github.com/rust-lang/rust/pull/132325)
105+
- `std::env::home_dir()` has been deprecated for years, because it can give surprising results in some Windows configurations if the `HOME` environment variable is set (which is not the normal configuration on Windows). We had previously avoided changing its behavior, out of concern for compatibility with code depending on this non-standard configuration. Given how long this function has been deprecated, we're now fixing its behavior as a bugfix. A subsequent release will remove the deprecation for this function.
106+
- [Make `core::ffi::c_char` signedness more closely match that of the platform-default `char`](https://github.com/rust-lang/rust/pull/132975)
107+
This changed `c_char` from an `i8` to `u8` or vice versa on many Tier 2 and 3
108+
targets (mostly Arm and RISC-V embedded targets). The new definition may
109+
result in compilation failures but fixes compatibility issues with C.
110+
The `libc` crate matches this change as of its 0.2.169 release.
111+
- [When compiling a nested `macro_rules` macro from an external crate, the content of the inner `macro_rules` is now built with the edition of the external crate, not the local crate.](https://github.com/rust-lang/rust/pull/133274)
112+
- [Increase `sparcv9-sun-solaris` and `x86_64-pc-solaris` Solaris baseline to 11.4.](https://github.com/rust-lang/rust/pull/133293)
113+
- [Show `abi_unsupported_vector_types` lint in future breakage reports](https://github.com/rust-lang/rust/pull/133374)
114+
- [Error if multiple super-trait instantiations of `dyn Trait` need associated types to be specified but only one is provided](https://github.com/rust-lang/rust/pull/133392)
115+
- [Change `powerpc64-ibm-aix` default `codemodel` to large](https://github.com/rust-lang/rust/pull/133811)
116+
117+
<a id="1.85.0-Internal-Changes"></a>
118+
119+
Internal Changes
120+
----------------
121+
122+
These changes do not affect any public interfaces of Rust, but they represent
123+
significant improvements to the performance or internals of rustc and related
124+
tools.
125+
126+
- [Build `x86_64-unknown-linux-gnu` with LTO for C/C++ code (e.g., `jemalloc`)](https://github.com/rust-lang/rust/pull/134690)
127+
1128
Version 1.84.1 (2025-01-30)
2129
==========================
3130

‎compiler/rustc_codegen_llvm/src/context.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,12 @@ pub(crate) unsafe fn create_module<'ll>(
194194
target_data_layout = target_data_layout.replace("-i128:128", "");
195195
}
196196
}
197+
if llvm_version < (21, 0, 0) {
198+
if sess.target.arch == "nvptx64" {
199+
// LLVM 21 updated the default layout on nvptx: https://github.com/llvm/llvm-project/pull/124961
200+
target_data_layout = target_data_layout.replace("e-p6:32:32-i64", "e-i64");
201+
}
202+
}
197203

198204
// Ensure the data-layout values hardcoded remain the defaults.
199205
{

‎compiler/rustc_codegen_ssa/src/back/linker.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1776,6 +1776,7 @@ fn exported_symbols_for_non_proc_macro(tcx: TyCtxt<'_>, crate_type: CrateType) -
17761776
symbols.push(symbol_export::exporting_symbol_name_for_instance_in_crate(
17771777
tcx, symbol, cnum,
17781778
));
1779+
symbol_export::extend_exported_symbols(&mut symbols, tcx, symbol, cnum);
17791780
}
17801781
});
17811782

‎compiler/rustc_codegen_ssa/src/back/symbol_export.rs

Lines changed: 60 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ use rustc_middle::middle::exported_symbols::{
1010
ExportedSymbol, SymbolExportInfo, SymbolExportKind, SymbolExportLevel, metadata_symbol_name,
1111
};
1212
use rustc_middle::query::LocalCrate;
13-
use rustc_middle::ty::{self, GenericArgKind, GenericArgsRef, Instance, SymbolName, TyCtxt};
13+
use rustc_middle::ty::{self, GenericArgKind, GenericArgsRef, Instance, SymbolName, Ty, TyCtxt};
1414
use rustc_middle::util::Providers;
1515
use rustc_session::config::{CrateType, OomStrategy};
16+
use rustc_target::callconv::Conv;
1617
use rustc_target::spec::{SanitizerSet, TlsModel};
1718
use tracing::debug;
1819

@@ -584,6 +585,42 @@ pub(crate) fn symbol_name_for_instance_in_crate<'tcx>(
584585
}
585586
}
586587

588+
fn calling_convention_for_symbol<'tcx>(
589+
tcx: TyCtxt<'tcx>,
590+
symbol: ExportedSymbol<'tcx>,
591+
) -> (Conv, &'tcx [rustc_target::callconv::ArgAbi<'tcx, Ty<'tcx>>]) {
592+
let instance = match symbol {
593+
ExportedSymbol::NonGeneric(def_id) | ExportedSymbol::Generic(def_id, _)
594+
if tcx.is_static(def_id) =>
595+
{
596+
None
597+
}
598+
ExportedSymbol::NonGeneric(def_id) => Some(Instance::mono(tcx, def_id)),
599+
ExportedSymbol::Generic(def_id, args) => Some(Instance::new(def_id, args)),
600+
// DropGlue always use the Rust calling convention and thus follow the target's default
601+
// symbol decoration scheme.
602+
ExportedSymbol::DropGlue(..) => None,
603+
// AsyncDropGlueCtorShim always use the Rust calling convention and thus follow the
604+
// target's default symbol decoration scheme.
605+
ExportedSymbol::AsyncDropGlueCtorShim(..) => None,
606+
// NoDefId always follow the target's default symbol decoration scheme.
607+
ExportedSymbol::NoDefId(..) => None,
608+
// ThreadLocalShim always follow the target's default symbol decoration scheme.
609+
ExportedSymbol::ThreadLocalShim(..) => None,
610+
};
611+
612+
instance
613+
.map(|i| {
614+
tcx.fn_abi_of_instance(
615+
ty::TypingEnv::fully_monomorphized().as_query_input((i, ty::List::empty())),
616+
)
617+
.unwrap_or_else(|_| bug!("fn_abi_of_instance({i:?}) failed"))
618+
})
619+
.map(|fnabi| (fnabi.conv, &fnabi.args[..]))
620+
// FIXME(workingjubilee): why don't we know the convention here?
621+
.unwrap_or((Conv::Rust, &[]))
622+
}
623+
587624
/// This is the symbol name of the given instance as seen by the linker.
588625
///
589626
/// On 32-bit Windows symbols are decorated according to their calling conventions.
@@ -592,8 +629,6 @@ pub(crate) fn linking_symbol_name_for_instance_in_crate<'tcx>(
592629
symbol: ExportedSymbol<'tcx>,
593630
instantiating_crate: CrateNum,
594631
) -> String {
595-
use rustc_target::callconv::Conv;
596-
597632
let mut undecorated = symbol_name_for_instance_in_crate(tcx, symbol, instantiating_crate);
598633

599634
// thread local will not be a function call,
@@ -617,35 +652,7 @@ pub(crate) fn linking_symbol_name_for_instance_in_crate<'tcx>(
617652
_ => return undecorated,
618653
};
619654

620-
let instance = match symbol {
621-
ExportedSymbol::NonGeneric(def_id) | ExportedSymbol::Generic(def_id, _)
622-
if tcx.is_static(def_id) =>
623-
{
624-
None
625-
}
626-
ExportedSymbol::NonGeneric(def_id) => Some(Instance::mono(tcx, def_id)),
627-
ExportedSymbol::Generic(def_id, args) => Some(Instance::new(def_id, args)),
628-
// DropGlue always use the Rust calling convention and thus follow the target's default
629-
// symbol decoration scheme.
630-
ExportedSymbol::DropGlue(..) => None,
631-
// AsyncDropGlueCtorShim always use the Rust calling convention and thus follow the
632-
// target's default symbol decoration scheme.
633-
ExportedSymbol::AsyncDropGlueCtorShim(..) => None,
634-
// NoDefId always follow the target's default symbol decoration scheme.
635-
ExportedSymbol::NoDefId(..) => None,
636-
// ThreadLocalShim always follow the target's default symbol decoration scheme.
637-
ExportedSymbol::ThreadLocalShim(..) => None,
638-
};
639-
640-
let (conv, args) = instance
641-
.map(|i| {
642-
tcx.fn_abi_of_instance(
643-
ty::TypingEnv::fully_monomorphized().as_query_input((i, ty::List::empty())),
644-
)
645-
.unwrap_or_else(|_| bug!("fn_abi_of_instance({i:?}) failed"))
646-
})
647-
.map(|fnabi| (fnabi.conv, &fnabi.args[..]))
648-
.unwrap_or((Conv::Rust, &[]));
655+
let (conv, args) = calling_convention_for_symbol(tcx, symbol);
649656

650657
// Decorate symbols with prefixes, suffixes and total number of bytes of arguments.
651658
// Reference: https://docs.microsoft.com/en-us/cpp/build/reference/decorated-names?view=msvc-170
@@ -677,6 +684,27 @@ pub(crate) fn exporting_symbol_name_for_instance_in_crate<'tcx>(
677684
maybe_emutls_symbol_name(tcx, symbol, &undecorated).unwrap_or(undecorated)
678685
}
679686

687+
/// On amdhsa, `gpu-kernel` functions have an associated metadata object with a `.kd` suffix.
688+
/// Add it to the symbols list for all kernel functions, so that it is exported in the linked
689+
/// object.
690+
pub(crate) fn extend_exported_symbols<'tcx>(
691+
symbols: &mut Vec<String>,
692+
tcx: TyCtxt<'tcx>,
693+
symbol: ExportedSymbol<'tcx>,
694+
instantiating_crate: CrateNum,
695+
) {
696+
let (conv, _) = calling_convention_for_symbol(tcx, symbol);
697+
698+
if conv != Conv::GpuKernel || tcx.sess.target.os != "amdhsa" {
699+
return;
700+
}
701+
702+
let undecorated = symbol_name_for_instance_in_crate(tcx, symbol, instantiating_crate);
703+
704+
// Add the symbol for the kernel descriptor (with .kd suffix)
705+
symbols.push(format!("{undecorated}.kd"));
706+
}
707+
680708
fn maybe_emutls_symbol_name<'tcx>(
681709
tcx: TyCtxt<'tcx>,
682710
symbol: ExportedSymbol<'tcx>,

‎compiler/rustc_monomorphize/messages.ftl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
monomorphize_abi_error_disabled_vector_type_call =
2-
this function call uses a SIMD vector type that (with the chosen ABI) requires the `{$required_feature}` target feature, which is not enabled in the caller
2+
this function call uses SIMD vector type `{$ty}` which (with the chosen ABI) requires the `{$required_feature}` target feature, which is not enabled in the caller
33
.label = function called here
44
.help = consider enabling it globally (`-C target-feature=+{$required_feature}`) or locally (`#[target_feature(enable="{$required_feature}")]`)
55
monomorphize_abi_error_disabled_vector_type_def =
6-
this function definition uses a SIMD vector type that (with the chosen ABI) requires the `{$required_feature}` target feature, which is not enabled
6+
this function definition uses SIMD vector type `{$ty}` which (with the chosen ABI) requires the `{$required_feature}` target feature, which is not enabled
77
.label = function defined here
88
.help = consider enabling it globally (`-C target-feature=+{$required_feature}`) or locally (`#[target_feature(enable="{$required_feature}")]`)
99
1010
monomorphize_abi_error_unsupported_vector_type_call =
11-
this function call uses a SIMD vector type that is not currently supported with the chosen ABI
11+
this function call uses SIMD vector type `{$ty}` which is not currently supported with the chosen ABI
1212
.label = function called here
1313
monomorphize_abi_error_unsupported_vector_type_def =
14-
this function definition uses a SIMD vector type that is not currently supported with the chosen ABI
14+
this function definition uses SIMD vector type `{$ty}` which is not currently supported with the chosen ABI
1515
.label = function defined here
1616
1717
monomorphize_couldnt_dump_mono_stats =

‎compiler/rustc_monomorphize/src/errors.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use std::path::PathBuf;
22

33
use rustc_macros::{Diagnostic, LintDiagnostic};
4+
use rustc_middle::ty::Ty;
45
use rustc_span::{Span, Symbol};
56

67
#[derive(Diagnostic)]
@@ -75,6 +76,7 @@ pub(crate) struct AbiErrorDisabledVectorTypeDef<'a> {
7576
#[label]
7677
pub span: Span,
7778
pub required_feature: &'a str,
79+
pub ty: Ty<'a>,
7880
}
7981

8082
#[derive(LintDiagnostic)]
@@ -84,18 +86,21 @@ pub(crate) struct AbiErrorDisabledVectorTypeCall<'a> {
8486
#[label]
8587
pub span: Span,
8688
pub required_feature: &'a str,
89+
pub ty: Ty<'a>,
8790
}
8891

8992
#[derive(LintDiagnostic)]
9093
#[diag(monomorphize_abi_error_unsupported_vector_type_def)]
91-
pub(crate) struct AbiErrorUnsupportedVectorTypeDef {
94+
pub(crate) struct AbiErrorUnsupportedVectorTypeDef<'a> {
9295
#[label]
9396
pub span: Span,
97+
pub ty: Ty<'a>,
9498
}
9599

96100
#[derive(LintDiagnostic)]
97101
#[diag(monomorphize_abi_error_unsupported_vector_type_call)]
98-
pub(crate) struct AbiErrorUnsupportedVectorTypeCall {
102+
pub(crate) struct AbiErrorUnsupportedVectorTypeCall<'a> {
99103
#[label]
100104
pub span: Span,
105+
pub ty: Ty<'a>,
101106
}

‎compiler/rustc_monomorphize/src/mono_checks/abi_check.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ fn do_check_abi<'tcx>(
3434
tcx: TyCtxt<'tcx>,
3535
abi: &FnAbi<'tcx, Ty<'tcx>>,
3636
target_feature_def: DefId,
37-
mut emit_err: impl FnMut(Option<&'static str>),
37+
mut emit_err: impl FnMut(Ty<'tcx>, Option<&'static str>),
3838
) {
3939
let feature_def = tcx.sess.target.features_for_correct_vector_abi();
4040
let codegen_attrs = tcx.codegen_fn_attrs(target_feature_def);
@@ -45,15 +45,15 @@ fn do_check_abi<'tcx>(
4545
let feature = match feature_def.iter().find(|(bits, _)| size.bits() <= *bits) {
4646
Some((_, feature)) => feature,
4747
None => {
48-
emit_err(None);
48+
emit_err(arg_abi.layout.ty, None);
4949
continue;
5050
}
5151
};
5252
let feature_sym = Symbol::intern(feature);
5353
if !tcx.sess.unstable_target_features.contains(&feature_sym)
5454
&& !codegen_attrs.target_features.iter().any(|x| x.name == feature_sym)
5555
{
56-
emit_err(Some(&feature));
56+
emit_err(arg_abi.layout.ty, Some(&feature));
5757
}
5858
}
5959
}
@@ -69,21 +69,21 @@ fn check_instance_abi<'tcx>(tcx: TyCtxt<'tcx>, instance: Instance<'tcx>) {
6969
// function.
7070
return;
7171
};
72-
do_check_abi(tcx, abi, instance.def_id(), |required_feature| {
72+
do_check_abi(tcx, abi, instance.def_id(), |ty, required_feature| {
7373
let span = tcx.def_span(instance.def_id());
7474
if let Some(required_feature) = required_feature {
7575
tcx.emit_node_span_lint(
7676
ABI_UNSUPPORTED_VECTOR_TYPES,
7777
CRATE_HIR_ID,
7878
span,
79-
AbiErrorDisabledVectorTypeDef { span, required_feature },
79+
AbiErrorDisabledVectorTypeDef { span, required_feature, ty },
8080
);
8181
} else {
8282
tcx.emit_node_span_lint(
8383
ABI_UNSUPPORTED_VECTOR_TYPES,
8484
CRATE_HIR_ID,
8585
span,
86-
AbiErrorUnsupportedVectorTypeDef { span },
86+
AbiErrorUnsupportedVectorTypeDef { span, ty },
8787
);
8888
}
8989
})
@@ -123,20 +123,20 @@ fn check_call_site_abi<'tcx>(
123123
// ABI failed to compute; this will not get through codegen.
124124
return;
125125
};
126-
do_check_abi(tcx, callee_abi, caller.def_id(), |required_feature| {
126+
do_check_abi(tcx, callee_abi, caller.def_id(), |ty, required_feature| {
127127
if let Some(required_feature) = required_feature {
128128
tcx.emit_node_span_lint(
129129
ABI_UNSUPPORTED_VECTOR_TYPES,
130130
CRATE_HIR_ID,
131131
span,
132-
AbiErrorDisabledVectorTypeCall { span, required_feature },
132+
AbiErrorDisabledVectorTypeCall { span, required_feature, ty },
133133
);
134134
} else {
135135
tcx.emit_node_span_lint(
136136
ABI_UNSUPPORTED_VECTOR_TYPES,
137137
CRATE_HIR_ID,
138138
span,
139-
AbiErrorUnsupportedVectorTypeCall { span },
139+
AbiErrorUnsupportedVectorTypeCall { span, ty },
140140
);
141141
}
142142
});

‎compiler/rustc_target/src/spec/targets/nvptx64_nvidia_cuda.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use crate::spec::{
55
pub(crate) fn target() -> Target {
66
Target {
77
arch: "nvptx64".into(),
8-
data_layout: "e-i64:64-i128:128-v16:16-v32:32-n16:32:64".into(),
8+
data_layout: "e-p6:32:32-i64:64-i128:128-v16:16-v32:32-n16:32:64".into(),
99
llvm_target: "nvptx64-nvidia-cuda".into(),
1010
metadata: crate::spec::TargetMetadata {
1111
description: Some("--emit=asm generates PTX code that runs on NVIDIA GPUs".into()),

‎compiler/rustc_trait_selection/src/traits/dyn_compatibility.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,10 @@ fn predicates_reference_self(
187187
fn bounds_reference_self(tcx: TyCtxt<'_>, trait_def_id: DefId) -> SmallVec<[Span; 1]> {
188188
tcx.associated_items(trait_def_id)
189189
.in_definition_order()
190+
// We're only looking at associated type bounds
190191
.filter(|item| item.kind == ty::AssocKind::Type)
192+
// Ignore GATs with `Self: Sized`
193+
.filter(|item| !tcx.generics_require_sized_self(item.def_id))
191194
.flat_map(|item| tcx.explicit_item_bounds(item.def_id).iter_identity_copied())
192195
.filter_map(|(clause, sp)| {
193196
// Item bounds *can* have self projections, since they never get

‎tests/run-make/amdgpu-kd/foo.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#![allow(internal_features)]
2+
#![feature(no_core, lang_items, abi_gpu_kernel)]
3+
#![no_core]
4+
#![no_std]
5+
6+
// This is needed because of #![no_core]:
7+
#[lang = "sized"]
8+
trait Sized {}
9+
10+
#[no_mangle]
11+
extern "gpu-kernel" fn kernel() {}

‎tests/run-make/amdgpu-kd/rmake.rs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// On the amdhsa OS, the host runtime (HIP or HSA) expects a kernel descriptor object for each
2+
// kernel in the ELF file. The amdgpu LLVM backend generates the object. It is created as a symbol
3+
// with the name of the kernel plus a .kd suffix.
4+
// Check that the produced object has the .kd symbol exported.
5+
6+
//@ needs-llvm-components: amdgpu
7+
//@ needs-rust-lld
8+
9+
use run_make_support::{llvm_readobj, rustc};
10+
11+
fn main() {
12+
rustc()
13+
.crate_name("foo")
14+
.target("amdgcn-amd-amdhsa")
15+
.arg("-Ctarget-cpu=gfx900")
16+
.crate_type("cdylib")
17+
.input("foo.rs")
18+
.run();
19+
llvm_readobj().input("foo.elf").symbols().run().assert_stdout_contains("kernel.kd");
20+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Ensure that we properly ignore the `B<Self>` associated type bound on `A::T`
2+
// since that associated type requires `Self: Sized`.
3+
4+
//@ check-pass
5+
6+
struct X(&'static dyn A);
7+
8+
trait A {
9+
type T: B<Self> where Self: Sized;
10+
}
11+
12+
trait B<T> {}
13+
14+
fn main() {}

‎tests/ui/simd-abi-checks-empty-list.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ trait Copy {}
1515
pub struct SimdVec([i32; 4]);
1616

1717
pub extern "C" fn pass_by_vec(_: SimdVec) {}
18-
//~^ this function definition uses a SIMD vector type that is not currently supported with the chosen ABI
18+
//~^ this function definition uses SIMD vector type `SimdVec` which is not currently supported with the chosen ABI
1919
//~| WARNING this was previously accepted by the compiler

‎tests/ui/simd-abi-checks-empty-list.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
warning: this function definition uses a SIMD vector type that is not currently supported with the chosen ABI
1+
warning: this function definition uses SIMD vector type `SimdVec` which is not currently supported with the chosen ABI
22
--> $DIR/simd-abi-checks-empty-list.rs:17:1
33
|
44
LL | pub extern "C" fn pass_by_vec(_: SimdVec) {}
@@ -11,7 +11,7 @@ LL | pub extern "C" fn pass_by_vec(_: SimdVec) {}
1111
warning: 1 warning emitted
1212

1313
Future incompatibility report: Future breakage diagnostic:
14-
warning: this function definition uses a SIMD vector type that is not currently supported with the chosen ABI
14+
warning: this function definition uses SIMD vector type `SimdVec` which is not currently supported with the chosen ABI
1515
--> $DIR/simd-abi-checks-empty-list.rs:17:1
1616
|
1717
LL | pub extern "C" fn pass_by_vec(_: SimdVec) {}

‎tests/ui/simd-abi-checks-s390x.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ impl<T: Copy> Copy for TransparentWrapper<T> {}
4444

4545
#[no_mangle]
4646
extern "C" fn vector_ret_small(x: &i8x8) -> i8x8 {
47-
//~^ ERROR this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
47+
//~^ ERROR requires the `vector` target feature, which is not enabled
4848
//~^^ WARN this was previously accepted
4949
*x
5050
}
5151
#[no_mangle]
5252
extern "C" fn vector_ret(x: &i8x16) -> i8x16 {
53-
//~^ ERROR this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
53+
//~^ ERROR requires the `vector` target feature, which is not enabled
5454
//~^^ WARN this was previously accepted
5555
*x
5656
}
@@ -99,15 +99,15 @@ extern "C" fn vector_wrapper_ret_large(x: &Wrapper<i8x32>) -> Wrapper<i8x32> {
9999
extern "C" fn vector_transparent_wrapper_ret_small(
100100
x: &TransparentWrapper<i8x8>,
101101
) -> TransparentWrapper<i8x8> {
102-
//~^^^ ERROR this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
102+
//~^^^ ERROR requires the `vector` target feature, which is not enabled
103103
//~^^^^ WARN this was previously accepted
104104
*x
105105
}
106106
#[no_mangle]
107107
extern "C" fn vector_transparent_wrapper_ret(
108108
x: &TransparentWrapper<i8x16>,
109109
) -> TransparentWrapper<i8x16> {
110-
//~^^^ ERROR this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
110+
//~^^^ ERROR requires the `vector` target feature, which is not enabled
111111
//~^^^^ WARN this was previously accepted
112112
*x
113113
}
@@ -121,13 +121,13 @@ extern "C" fn vector_transparent_wrapper_ret_large(
121121

122122
#[no_mangle]
123123
extern "C" fn vector_arg_small(x: i8x8) -> i64 {
124-
//~^ ERROR this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
124+
//~^ ERROR requires the `vector` target feature, which is not enabled
125125
//~^^ WARN this was previously accepted
126126
unsafe { *(&x as *const i8x8 as *const i64) }
127127
}
128128
#[no_mangle]
129129
extern "C" fn vector_arg(x: i8x16) -> i64 {
130-
//~^ ERROR this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
130+
//~^ ERROR requires the `vector` target feature, which is not enabled
131131
//~^^ WARN this was previously accepted
132132
unsafe { *(&x as *const i8x16 as *const i64) }
133133
}
@@ -139,13 +139,13 @@ extern "C" fn vector_arg_large(x: i8x32) -> i64 {
139139

140140
#[no_mangle]
141141
extern "C" fn vector_wrapper_arg_small(x: Wrapper<i8x8>) -> i64 {
142-
//~^ ERROR this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
142+
//~^ ERROR requires the `vector` target feature, which is not enabled
143143
//~^^ WARN this was previously accepted
144144
unsafe { *(&x as *const Wrapper<i8x8> as *const i64) }
145145
}
146146
#[no_mangle]
147147
extern "C" fn vector_wrapper_arg(x: Wrapper<i8x16>) -> i64 {
148-
//~^ ERROR this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
148+
//~^ ERROR requires the `vector` target feature, which is not enabled
149149
//~^^ WARN this was previously accepted
150150
unsafe { *(&x as *const Wrapper<i8x16> as *const i64) }
151151
}
@@ -157,13 +157,13 @@ extern "C" fn vector_wrapper_arg_large(x: Wrapper<i8x32>) -> i64 {
157157

158158
#[no_mangle]
159159
extern "C" fn vector_transparent_wrapper_arg_small(x: TransparentWrapper<i8x8>) -> i64 {
160-
//~^ ERROR this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
160+
//~^ ERROR requires the `vector` target feature, which is not enabled
161161
//~^^ WARN this was previously accepted
162162
unsafe { *(&x as *const TransparentWrapper<i8x8> as *const i64) }
163163
}
164164
#[no_mangle]
165165
extern "C" fn vector_transparent_wrapper_arg(x: TransparentWrapper<i8x16>) -> i64 {
166-
//~^ ERROR this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
166+
//~^ ERROR requires the `vector` target feature, which is not enabled
167167
//~^^ WARN this was previously accepted
168168
unsafe { *(&x as *const TransparentWrapper<i8x16> as *const i64) }
169169
}

‎tests/ui/simd-abi-checks-s390x.z10.stderr

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
1+
error: this function definition uses SIMD vector type `i8x8` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
22
--> $DIR/simd-abi-checks-s390x.rs:46:1
33
|
44
LL | extern "C" fn vector_ret_small(x: &i8x8) -> i8x8 {
@@ -13,7 +13,7 @@ note: the lint level is defined here
1313
LL | #![deny(abi_unsupported_vector_types)]
1414
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1515

16-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
16+
error: this function definition uses SIMD vector type `i8x16` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
1717
--> $DIR/simd-abi-checks-s390x.rs:52:1
1818
|
1919
LL | extern "C" fn vector_ret(x: &i8x16) -> i8x16 {
@@ -23,7 +23,7 @@ LL | extern "C" fn vector_ret(x: &i8x16) -> i8x16 {
2323
= note: for more information, see issue #116558 <https://github.com/rust-lang/rust/issues/116558>
2424
= help: consider enabling it globally (`-C target-feature=+vector`) or locally (`#[target_feature(enable="vector")]`)
2525

26-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
26+
error: this function definition uses SIMD vector type `TransparentWrapper<i8x8>` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
2727
--> $DIR/simd-abi-checks-s390x.rs:99:1
2828
|
2929
LL | / extern "C" fn vector_transparent_wrapper_ret_small(
@@ -35,7 +35,7 @@ LL | | ) -> TransparentWrapper<i8x8> {
3535
= note: for more information, see issue #116558 <https://github.com/rust-lang/rust/issues/116558>
3636
= help: consider enabling it globally (`-C target-feature=+vector`) or locally (`#[target_feature(enable="vector")]`)
3737

38-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
38+
error: this function definition uses SIMD vector type `TransparentWrapper<i8x16>` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
3939
--> $DIR/simd-abi-checks-s390x.rs:107:1
4040
|
4141
LL | / extern "C" fn vector_transparent_wrapper_ret(
@@ -47,7 +47,7 @@ LL | | ) -> TransparentWrapper<i8x16> {
4747
= note: for more information, see issue #116558 <https://github.com/rust-lang/rust/issues/116558>
4848
= help: consider enabling it globally (`-C target-feature=+vector`) or locally (`#[target_feature(enable="vector")]`)
4949

50-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
50+
error: this function definition uses SIMD vector type `i8x8` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
5151
--> $DIR/simd-abi-checks-s390x.rs:123:1
5252
|
5353
LL | extern "C" fn vector_arg_small(x: i8x8) -> i64 {
@@ -57,7 +57,7 @@ LL | extern "C" fn vector_arg_small(x: i8x8) -> i64 {
5757
= note: for more information, see issue #116558 <https://github.com/rust-lang/rust/issues/116558>
5858
= help: consider enabling it globally (`-C target-feature=+vector`) or locally (`#[target_feature(enable="vector")]`)
5959

60-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
60+
error: this function definition uses SIMD vector type `i8x16` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
6161
--> $DIR/simd-abi-checks-s390x.rs:129:1
6262
|
6363
LL | extern "C" fn vector_arg(x: i8x16) -> i64 {
@@ -67,7 +67,7 @@ LL | extern "C" fn vector_arg(x: i8x16) -> i64 {
6767
= note: for more information, see issue #116558 <https://github.com/rust-lang/rust/issues/116558>
6868
= help: consider enabling it globally (`-C target-feature=+vector`) or locally (`#[target_feature(enable="vector")]`)
6969

70-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
70+
error: this function definition uses SIMD vector type `Wrapper<i8x8>` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
7171
--> $DIR/simd-abi-checks-s390x.rs:141:1
7272
|
7373
LL | extern "C" fn vector_wrapper_arg_small(x: Wrapper<i8x8>) -> i64 {
@@ -77,7 +77,7 @@ LL | extern "C" fn vector_wrapper_arg_small(x: Wrapper<i8x8>) -> i64 {
7777
= note: for more information, see issue #116558 <https://github.com/rust-lang/rust/issues/116558>
7878
= help: consider enabling it globally (`-C target-feature=+vector`) or locally (`#[target_feature(enable="vector")]`)
7979

80-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
80+
error: this function definition uses SIMD vector type `Wrapper<i8x16>` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
8181
--> $DIR/simd-abi-checks-s390x.rs:147:1
8282
|
8383
LL | extern "C" fn vector_wrapper_arg(x: Wrapper<i8x16>) -> i64 {
@@ -87,7 +87,7 @@ LL | extern "C" fn vector_wrapper_arg(x: Wrapper<i8x16>) -> i64 {
8787
= note: for more information, see issue #116558 <https://github.com/rust-lang/rust/issues/116558>
8888
= help: consider enabling it globally (`-C target-feature=+vector`) or locally (`#[target_feature(enable="vector")]`)
8989

90-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
90+
error: this function definition uses SIMD vector type `TransparentWrapper<i8x8>` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
9191
--> $DIR/simd-abi-checks-s390x.rs:159:1
9292
|
9393
LL | extern "C" fn vector_transparent_wrapper_arg_small(x: TransparentWrapper<i8x8>) -> i64 {
@@ -97,7 +97,7 @@ LL | extern "C" fn vector_transparent_wrapper_arg_small(x: TransparentWrapper<i8
9797
= note: for more information, see issue #116558 <https://github.com/rust-lang/rust/issues/116558>
9898
= help: consider enabling it globally (`-C target-feature=+vector`) or locally (`#[target_feature(enable="vector")]`)
9999

100-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
100+
error: this function definition uses SIMD vector type `TransparentWrapper<i8x16>` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
101101
--> $DIR/simd-abi-checks-s390x.rs:165:1
102102
|
103103
LL | extern "C" fn vector_transparent_wrapper_arg(x: TransparentWrapper<i8x16>) -> i64 {
@@ -110,7 +110,7 @@ LL | extern "C" fn vector_transparent_wrapper_arg(x: TransparentWrapper<i8x16>)
110110
error: aborting due to 10 previous errors
111111

112112
Future incompatibility report: Future breakage diagnostic:
113-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
113+
error: this function definition uses SIMD vector type `i8x8` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
114114
--> $DIR/simd-abi-checks-s390x.rs:46:1
115115
|
116116
LL | extern "C" fn vector_ret_small(x: &i8x8) -> i8x8 {
@@ -126,7 +126,7 @@ LL | #![deny(abi_unsupported_vector_types)]
126126
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
127127

128128
Future breakage diagnostic:
129-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
129+
error: this function definition uses SIMD vector type `i8x16` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
130130
--> $DIR/simd-abi-checks-s390x.rs:52:1
131131
|
132132
LL | extern "C" fn vector_ret(x: &i8x16) -> i8x16 {
@@ -142,7 +142,7 @@ LL | #![deny(abi_unsupported_vector_types)]
142142
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
143143

144144
Future breakage diagnostic:
145-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
145+
error: this function definition uses SIMD vector type `TransparentWrapper<i8x8>` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
146146
--> $DIR/simd-abi-checks-s390x.rs:99:1
147147
|
148148
LL | / extern "C" fn vector_transparent_wrapper_ret_small(
@@ -160,7 +160,7 @@ LL | #![deny(abi_unsupported_vector_types)]
160160
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
161161

162162
Future breakage diagnostic:
163-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
163+
error: this function definition uses SIMD vector type `TransparentWrapper<i8x16>` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
164164
--> $DIR/simd-abi-checks-s390x.rs:107:1
165165
|
166166
LL | / extern "C" fn vector_transparent_wrapper_ret(
@@ -178,7 +178,7 @@ LL | #![deny(abi_unsupported_vector_types)]
178178
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
179179

180180
Future breakage diagnostic:
181-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
181+
error: this function definition uses SIMD vector type `i8x8` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
182182
--> $DIR/simd-abi-checks-s390x.rs:123:1
183183
|
184184
LL | extern "C" fn vector_arg_small(x: i8x8) -> i64 {
@@ -194,7 +194,7 @@ LL | #![deny(abi_unsupported_vector_types)]
194194
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
195195

196196
Future breakage diagnostic:
197-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
197+
error: this function definition uses SIMD vector type `i8x16` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
198198
--> $DIR/simd-abi-checks-s390x.rs:129:1
199199
|
200200
LL | extern "C" fn vector_arg(x: i8x16) -> i64 {
@@ -210,7 +210,7 @@ LL | #![deny(abi_unsupported_vector_types)]
210210
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
211211

212212
Future breakage diagnostic:
213-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
213+
error: this function definition uses SIMD vector type `Wrapper<i8x8>` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
214214
--> $DIR/simd-abi-checks-s390x.rs:141:1
215215
|
216216
LL | extern "C" fn vector_wrapper_arg_small(x: Wrapper<i8x8>) -> i64 {
@@ -226,7 +226,7 @@ LL | #![deny(abi_unsupported_vector_types)]
226226
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
227227

228228
Future breakage diagnostic:
229-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
229+
error: this function definition uses SIMD vector type `Wrapper<i8x16>` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
230230
--> $DIR/simd-abi-checks-s390x.rs:147:1
231231
|
232232
LL | extern "C" fn vector_wrapper_arg(x: Wrapper<i8x16>) -> i64 {
@@ -242,7 +242,7 @@ LL | #![deny(abi_unsupported_vector_types)]
242242
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
243243

244244
Future breakage diagnostic:
245-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
245+
error: this function definition uses SIMD vector type `TransparentWrapper<i8x8>` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
246246
--> $DIR/simd-abi-checks-s390x.rs:159:1
247247
|
248248
LL | extern "C" fn vector_transparent_wrapper_arg_small(x: TransparentWrapper<i8x8>) -> i64 {
@@ -258,7 +258,7 @@ LL | #![deny(abi_unsupported_vector_types)]
258258
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
259259

260260
Future breakage diagnostic:
261-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
261+
error: this function definition uses SIMD vector type `TransparentWrapper<i8x16>` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
262262
--> $DIR/simd-abi-checks-s390x.rs:165:1
263263
|
264264
LL | extern "C" fn vector_transparent_wrapper_arg(x: TransparentWrapper<i8x16>) -> i64 {

‎tests/ui/simd-abi-checks-s390x.z13_no_vector.stderr

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
1+
error: this function definition uses SIMD vector type `i8x8` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
22
--> $DIR/simd-abi-checks-s390x.rs:46:1
33
|
44
LL | extern "C" fn vector_ret_small(x: &i8x8) -> i8x8 {
@@ -13,7 +13,7 @@ note: the lint level is defined here
1313
LL | #![deny(abi_unsupported_vector_types)]
1414
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1515

16-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
16+
error: this function definition uses SIMD vector type `i8x16` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
1717
--> $DIR/simd-abi-checks-s390x.rs:52:1
1818
|
1919
LL | extern "C" fn vector_ret(x: &i8x16) -> i8x16 {
@@ -23,7 +23,7 @@ LL | extern "C" fn vector_ret(x: &i8x16) -> i8x16 {
2323
= note: for more information, see issue #116558 <https://github.com/rust-lang/rust/issues/116558>
2424
= help: consider enabling it globally (`-C target-feature=+vector`) or locally (`#[target_feature(enable="vector")]`)
2525

26-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
26+
error: this function definition uses SIMD vector type `TransparentWrapper<i8x8>` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
2727
--> $DIR/simd-abi-checks-s390x.rs:99:1
2828
|
2929
LL | / extern "C" fn vector_transparent_wrapper_ret_small(
@@ -35,7 +35,7 @@ LL | | ) -> TransparentWrapper<i8x8> {
3535
= note: for more information, see issue #116558 <https://github.com/rust-lang/rust/issues/116558>
3636
= help: consider enabling it globally (`-C target-feature=+vector`) or locally (`#[target_feature(enable="vector")]`)
3737

38-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
38+
error: this function definition uses SIMD vector type `TransparentWrapper<i8x16>` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
3939
--> $DIR/simd-abi-checks-s390x.rs:107:1
4040
|
4141
LL | / extern "C" fn vector_transparent_wrapper_ret(
@@ -47,7 +47,7 @@ LL | | ) -> TransparentWrapper<i8x16> {
4747
= note: for more information, see issue #116558 <https://github.com/rust-lang/rust/issues/116558>
4848
= help: consider enabling it globally (`-C target-feature=+vector`) or locally (`#[target_feature(enable="vector")]`)
4949

50-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
50+
error: this function definition uses SIMD vector type `i8x8` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
5151
--> $DIR/simd-abi-checks-s390x.rs:123:1
5252
|
5353
LL | extern "C" fn vector_arg_small(x: i8x8) -> i64 {
@@ -57,7 +57,7 @@ LL | extern "C" fn vector_arg_small(x: i8x8) -> i64 {
5757
= note: for more information, see issue #116558 <https://github.com/rust-lang/rust/issues/116558>
5858
= help: consider enabling it globally (`-C target-feature=+vector`) or locally (`#[target_feature(enable="vector")]`)
5959

60-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
60+
error: this function definition uses SIMD vector type `i8x16` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
6161
--> $DIR/simd-abi-checks-s390x.rs:129:1
6262
|
6363
LL | extern "C" fn vector_arg(x: i8x16) -> i64 {
@@ -67,7 +67,7 @@ LL | extern "C" fn vector_arg(x: i8x16) -> i64 {
6767
= note: for more information, see issue #116558 <https://github.com/rust-lang/rust/issues/116558>
6868
= help: consider enabling it globally (`-C target-feature=+vector`) or locally (`#[target_feature(enable="vector")]`)
6969

70-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
70+
error: this function definition uses SIMD vector type `Wrapper<i8x8>` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
7171
--> $DIR/simd-abi-checks-s390x.rs:141:1
7272
|
7373
LL | extern "C" fn vector_wrapper_arg_small(x: Wrapper<i8x8>) -> i64 {
@@ -77,7 +77,7 @@ LL | extern "C" fn vector_wrapper_arg_small(x: Wrapper<i8x8>) -> i64 {
7777
= note: for more information, see issue #116558 <https://github.com/rust-lang/rust/issues/116558>
7878
= help: consider enabling it globally (`-C target-feature=+vector`) or locally (`#[target_feature(enable="vector")]`)
7979

80-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
80+
error: this function definition uses SIMD vector type `Wrapper<i8x16>` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
8181
--> $DIR/simd-abi-checks-s390x.rs:147:1
8282
|
8383
LL | extern "C" fn vector_wrapper_arg(x: Wrapper<i8x16>) -> i64 {
@@ -87,7 +87,7 @@ LL | extern "C" fn vector_wrapper_arg(x: Wrapper<i8x16>) -> i64 {
8787
= note: for more information, see issue #116558 <https://github.com/rust-lang/rust/issues/116558>
8888
= help: consider enabling it globally (`-C target-feature=+vector`) or locally (`#[target_feature(enable="vector")]`)
8989

90-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
90+
error: this function definition uses SIMD vector type `TransparentWrapper<i8x8>` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
9191
--> $DIR/simd-abi-checks-s390x.rs:159:1
9292
|
9393
LL | extern "C" fn vector_transparent_wrapper_arg_small(x: TransparentWrapper<i8x8>) -> i64 {
@@ -97,7 +97,7 @@ LL | extern "C" fn vector_transparent_wrapper_arg_small(x: TransparentWrapper<i8
9797
= note: for more information, see issue #116558 <https://github.com/rust-lang/rust/issues/116558>
9898
= help: consider enabling it globally (`-C target-feature=+vector`) or locally (`#[target_feature(enable="vector")]`)
9999

100-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
100+
error: this function definition uses SIMD vector type `TransparentWrapper<i8x16>` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
101101
--> $DIR/simd-abi-checks-s390x.rs:165:1
102102
|
103103
LL | extern "C" fn vector_transparent_wrapper_arg(x: TransparentWrapper<i8x16>) -> i64 {
@@ -110,7 +110,7 @@ LL | extern "C" fn vector_transparent_wrapper_arg(x: TransparentWrapper<i8x16>)
110110
error: aborting due to 10 previous errors
111111

112112
Future incompatibility report: Future breakage diagnostic:
113-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
113+
error: this function definition uses SIMD vector type `i8x8` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
114114
--> $DIR/simd-abi-checks-s390x.rs:46:1
115115
|
116116
LL | extern "C" fn vector_ret_small(x: &i8x8) -> i8x8 {
@@ -126,7 +126,7 @@ LL | #![deny(abi_unsupported_vector_types)]
126126
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
127127

128128
Future breakage diagnostic:
129-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
129+
error: this function definition uses SIMD vector type `i8x16` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
130130
--> $DIR/simd-abi-checks-s390x.rs:52:1
131131
|
132132
LL | extern "C" fn vector_ret(x: &i8x16) -> i8x16 {
@@ -142,7 +142,7 @@ LL | #![deny(abi_unsupported_vector_types)]
142142
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
143143

144144
Future breakage diagnostic:
145-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
145+
error: this function definition uses SIMD vector type `TransparentWrapper<i8x8>` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
146146
--> $DIR/simd-abi-checks-s390x.rs:99:1
147147
|
148148
LL | / extern "C" fn vector_transparent_wrapper_ret_small(
@@ -160,7 +160,7 @@ LL | #![deny(abi_unsupported_vector_types)]
160160
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
161161

162162
Future breakage diagnostic:
163-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
163+
error: this function definition uses SIMD vector type `TransparentWrapper<i8x16>` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
164164
--> $DIR/simd-abi-checks-s390x.rs:107:1
165165
|
166166
LL | / extern "C" fn vector_transparent_wrapper_ret(
@@ -178,7 +178,7 @@ LL | #![deny(abi_unsupported_vector_types)]
178178
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
179179

180180
Future breakage diagnostic:
181-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
181+
error: this function definition uses SIMD vector type `i8x8` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
182182
--> $DIR/simd-abi-checks-s390x.rs:123:1
183183
|
184184
LL | extern "C" fn vector_arg_small(x: i8x8) -> i64 {
@@ -194,7 +194,7 @@ LL | #![deny(abi_unsupported_vector_types)]
194194
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
195195

196196
Future breakage diagnostic:
197-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
197+
error: this function definition uses SIMD vector type `i8x16` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
198198
--> $DIR/simd-abi-checks-s390x.rs:129:1
199199
|
200200
LL | extern "C" fn vector_arg(x: i8x16) -> i64 {
@@ -210,7 +210,7 @@ LL | #![deny(abi_unsupported_vector_types)]
210210
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
211211

212212
Future breakage diagnostic:
213-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
213+
error: this function definition uses SIMD vector type `Wrapper<i8x8>` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
214214
--> $DIR/simd-abi-checks-s390x.rs:141:1
215215
|
216216
LL | extern "C" fn vector_wrapper_arg_small(x: Wrapper<i8x8>) -> i64 {
@@ -226,7 +226,7 @@ LL | #![deny(abi_unsupported_vector_types)]
226226
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
227227

228228
Future breakage diagnostic:
229-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
229+
error: this function definition uses SIMD vector type `Wrapper<i8x16>` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
230230
--> $DIR/simd-abi-checks-s390x.rs:147:1
231231
|
232232
LL | extern "C" fn vector_wrapper_arg(x: Wrapper<i8x16>) -> i64 {
@@ -242,7 +242,7 @@ LL | #![deny(abi_unsupported_vector_types)]
242242
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
243243

244244
Future breakage diagnostic:
245-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
245+
error: this function definition uses SIMD vector type `TransparentWrapper<i8x8>` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
246246
--> $DIR/simd-abi-checks-s390x.rs:159:1
247247
|
248248
LL | extern "C" fn vector_transparent_wrapper_arg_small(x: TransparentWrapper<i8x8>) -> i64 {
@@ -258,7 +258,7 @@ LL | #![deny(abi_unsupported_vector_types)]
258258
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
259259

260260
Future breakage diagnostic:
261-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
261+
error: this function definition uses SIMD vector type `TransparentWrapper<i8x16>` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
262262
--> $DIR/simd-abi-checks-s390x.rs:165:1
263263
|
264264
LL | extern "C" fn vector_transparent_wrapper_arg(x: TransparentWrapper<i8x16>) -> i64 {

‎tests/ui/simd-abi-checks-s390x.z13_soft_float.stderr

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
1+
error: this function definition uses SIMD vector type `i8x8` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
22
--> $DIR/simd-abi-checks-s390x.rs:46:1
33
|
44
LL | extern "C" fn vector_ret_small(x: &i8x8) -> i8x8 {
@@ -13,7 +13,7 @@ note: the lint level is defined here
1313
LL | #![deny(abi_unsupported_vector_types)]
1414
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1515

16-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
16+
error: this function definition uses SIMD vector type `i8x16` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
1717
--> $DIR/simd-abi-checks-s390x.rs:52:1
1818
|
1919
LL | extern "C" fn vector_ret(x: &i8x16) -> i8x16 {
@@ -23,7 +23,7 @@ LL | extern "C" fn vector_ret(x: &i8x16) -> i8x16 {
2323
= note: for more information, see issue #116558 <https://github.com/rust-lang/rust/issues/116558>
2424
= help: consider enabling it globally (`-C target-feature=+vector`) or locally (`#[target_feature(enable="vector")]`)
2525

26-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
26+
error: this function definition uses SIMD vector type `TransparentWrapper<i8x8>` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
2727
--> $DIR/simd-abi-checks-s390x.rs:99:1
2828
|
2929
LL | / extern "C" fn vector_transparent_wrapper_ret_small(
@@ -35,7 +35,7 @@ LL | | ) -> TransparentWrapper<i8x8> {
3535
= note: for more information, see issue #116558 <https://github.com/rust-lang/rust/issues/116558>
3636
= help: consider enabling it globally (`-C target-feature=+vector`) or locally (`#[target_feature(enable="vector")]`)
3737

38-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
38+
error: this function definition uses SIMD vector type `TransparentWrapper<i8x16>` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
3939
--> $DIR/simd-abi-checks-s390x.rs:107:1
4040
|
4141
LL | / extern "C" fn vector_transparent_wrapper_ret(
@@ -47,7 +47,7 @@ LL | | ) -> TransparentWrapper<i8x16> {
4747
= note: for more information, see issue #116558 <https://github.com/rust-lang/rust/issues/116558>
4848
= help: consider enabling it globally (`-C target-feature=+vector`) or locally (`#[target_feature(enable="vector")]`)
4949

50-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
50+
error: this function definition uses SIMD vector type `i8x8` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
5151
--> $DIR/simd-abi-checks-s390x.rs:123:1
5252
|
5353
LL | extern "C" fn vector_arg_small(x: i8x8) -> i64 {
@@ -57,7 +57,7 @@ LL | extern "C" fn vector_arg_small(x: i8x8) -> i64 {
5757
= note: for more information, see issue #116558 <https://github.com/rust-lang/rust/issues/116558>
5858
= help: consider enabling it globally (`-C target-feature=+vector`) or locally (`#[target_feature(enable="vector")]`)
5959

60-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
60+
error: this function definition uses SIMD vector type `i8x16` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
6161
--> $DIR/simd-abi-checks-s390x.rs:129:1
6262
|
6363
LL | extern "C" fn vector_arg(x: i8x16) -> i64 {
@@ -67,7 +67,7 @@ LL | extern "C" fn vector_arg(x: i8x16) -> i64 {
6767
= note: for more information, see issue #116558 <https://github.com/rust-lang/rust/issues/116558>
6868
= help: consider enabling it globally (`-C target-feature=+vector`) or locally (`#[target_feature(enable="vector")]`)
6969

70-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
70+
error: this function definition uses SIMD vector type `Wrapper<i8x8>` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
7171
--> $DIR/simd-abi-checks-s390x.rs:141:1
7272
|
7373
LL | extern "C" fn vector_wrapper_arg_small(x: Wrapper<i8x8>) -> i64 {
@@ -77,7 +77,7 @@ LL | extern "C" fn vector_wrapper_arg_small(x: Wrapper<i8x8>) -> i64 {
7777
= note: for more information, see issue #116558 <https://github.com/rust-lang/rust/issues/116558>
7878
= help: consider enabling it globally (`-C target-feature=+vector`) or locally (`#[target_feature(enable="vector")]`)
7979

80-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
80+
error: this function definition uses SIMD vector type `Wrapper<i8x16>` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
8181
--> $DIR/simd-abi-checks-s390x.rs:147:1
8282
|
8383
LL | extern "C" fn vector_wrapper_arg(x: Wrapper<i8x16>) -> i64 {
@@ -87,7 +87,7 @@ LL | extern "C" fn vector_wrapper_arg(x: Wrapper<i8x16>) -> i64 {
8787
= note: for more information, see issue #116558 <https://github.com/rust-lang/rust/issues/116558>
8888
= help: consider enabling it globally (`-C target-feature=+vector`) or locally (`#[target_feature(enable="vector")]`)
8989

90-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
90+
error: this function definition uses SIMD vector type `TransparentWrapper<i8x8>` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
9191
--> $DIR/simd-abi-checks-s390x.rs:159:1
9292
|
9393
LL | extern "C" fn vector_transparent_wrapper_arg_small(x: TransparentWrapper<i8x8>) -> i64 {
@@ -97,7 +97,7 @@ LL | extern "C" fn vector_transparent_wrapper_arg_small(x: TransparentWrapper<i8
9797
= note: for more information, see issue #116558 <https://github.com/rust-lang/rust/issues/116558>
9898
= help: consider enabling it globally (`-C target-feature=+vector`) or locally (`#[target_feature(enable="vector")]`)
9999

100-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
100+
error: this function definition uses SIMD vector type `TransparentWrapper<i8x16>` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
101101
--> $DIR/simd-abi-checks-s390x.rs:165:1
102102
|
103103
LL | extern "C" fn vector_transparent_wrapper_arg(x: TransparentWrapper<i8x16>) -> i64 {
@@ -110,7 +110,7 @@ LL | extern "C" fn vector_transparent_wrapper_arg(x: TransparentWrapper<i8x16>)
110110
error: aborting due to 10 previous errors
111111

112112
Future incompatibility report: Future breakage diagnostic:
113-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
113+
error: this function definition uses SIMD vector type `i8x8` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
114114
--> $DIR/simd-abi-checks-s390x.rs:46:1
115115
|
116116
LL | extern "C" fn vector_ret_small(x: &i8x8) -> i8x8 {
@@ -126,7 +126,7 @@ LL | #![deny(abi_unsupported_vector_types)]
126126
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
127127

128128
Future breakage diagnostic:
129-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
129+
error: this function definition uses SIMD vector type `i8x16` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
130130
--> $DIR/simd-abi-checks-s390x.rs:52:1
131131
|
132132
LL | extern "C" fn vector_ret(x: &i8x16) -> i8x16 {
@@ -142,7 +142,7 @@ LL | #![deny(abi_unsupported_vector_types)]
142142
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
143143

144144
Future breakage diagnostic:
145-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
145+
error: this function definition uses SIMD vector type `TransparentWrapper<i8x8>` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
146146
--> $DIR/simd-abi-checks-s390x.rs:99:1
147147
|
148148
LL | / extern "C" fn vector_transparent_wrapper_ret_small(
@@ -160,7 +160,7 @@ LL | #![deny(abi_unsupported_vector_types)]
160160
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
161161

162162
Future breakage diagnostic:
163-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
163+
error: this function definition uses SIMD vector type `TransparentWrapper<i8x16>` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
164164
--> $DIR/simd-abi-checks-s390x.rs:107:1
165165
|
166166
LL | / extern "C" fn vector_transparent_wrapper_ret(
@@ -178,7 +178,7 @@ LL | #![deny(abi_unsupported_vector_types)]
178178
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
179179

180180
Future breakage diagnostic:
181-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
181+
error: this function definition uses SIMD vector type `i8x8` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
182182
--> $DIR/simd-abi-checks-s390x.rs:123:1
183183
|
184184
LL | extern "C" fn vector_arg_small(x: i8x8) -> i64 {
@@ -194,7 +194,7 @@ LL | #![deny(abi_unsupported_vector_types)]
194194
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
195195

196196
Future breakage diagnostic:
197-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
197+
error: this function definition uses SIMD vector type `i8x16` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
198198
--> $DIR/simd-abi-checks-s390x.rs:129:1
199199
|
200200
LL | extern "C" fn vector_arg(x: i8x16) -> i64 {
@@ -210,7 +210,7 @@ LL | #![deny(abi_unsupported_vector_types)]
210210
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
211211

212212
Future breakage diagnostic:
213-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
213+
error: this function definition uses SIMD vector type `Wrapper<i8x8>` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
214214
--> $DIR/simd-abi-checks-s390x.rs:141:1
215215
|
216216
LL | extern "C" fn vector_wrapper_arg_small(x: Wrapper<i8x8>) -> i64 {
@@ -226,7 +226,7 @@ LL | #![deny(abi_unsupported_vector_types)]
226226
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
227227

228228
Future breakage diagnostic:
229-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
229+
error: this function definition uses SIMD vector type `Wrapper<i8x16>` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
230230
--> $DIR/simd-abi-checks-s390x.rs:147:1
231231
|
232232
LL | extern "C" fn vector_wrapper_arg(x: Wrapper<i8x16>) -> i64 {
@@ -242,7 +242,7 @@ LL | #![deny(abi_unsupported_vector_types)]
242242
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
243243

244244
Future breakage diagnostic:
245-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
245+
error: this function definition uses SIMD vector type `TransparentWrapper<i8x8>` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
246246
--> $DIR/simd-abi-checks-s390x.rs:159:1
247247
|
248248
LL | extern "C" fn vector_transparent_wrapper_arg_small(x: TransparentWrapper<i8x8>) -> i64 {
@@ -258,7 +258,7 @@ LL | #![deny(abi_unsupported_vector_types)]
258258
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
259259

260260
Future breakage diagnostic:
261-
error: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `vector` target feature, which is not enabled
261+
error: this function definition uses SIMD vector type `TransparentWrapper<i8x16>` which (with the chosen ABI) requires the `vector` target feature, which is not enabled
262262
--> $DIR/simd-abi-checks-s390x.rs:165:1
263263
|
264264
LL | extern "C" fn vector_transparent_wrapper_arg(x: TransparentWrapper<i8x16>) -> i64 {

‎tests/ui/simd-abi-checks.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@ use std::arch::x86_64::*;
1313
struct Wrapper(__m256);
1414

1515
unsafe extern "C" fn w(_: Wrapper) {
16-
//~^ this function definition uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled
16+
//~^ requires the `avx` target feature, which is not enabled
1717
//~| WARNING this was previously accepted by the compiler
1818
todo!()
1919
}
2020

2121
unsafe extern "C" fn f(_: __m256) {
22-
//~^ this function definition uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled
22+
//~^ requires the `avx` target feature, which is not enabled
2323
//~| WARNING this was previously accepted by the compiler
2424
todo!()
2525
}
2626

2727
unsafe extern "C" fn g() -> __m256 {
28-
//~^ this function definition uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled
28+
//~^ requires the `avx` target feature, which is not enabled
2929
//~| WARNING this was previously accepted by the compiler
3030
todo!()
3131
}
@@ -55,23 +55,23 @@ unsafe fn test() {
5555
unsafe fn in_closure() -> impl FnOnce() -> __m256 {
5656
#[inline(always)] // this disables target-feature inheritance
5757
|| g()
58-
//~^ WARNING this function call uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
58+
//~^ WARNING requires the `avx` target feature, which is not enabled in the caller
5959
//~| WARNING this was previously accepted by the compiler
6060
}
6161

6262
fn main() {
6363
unsafe {
6464
f(g());
65-
//~^ WARNING this function call uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
66-
//~| WARNING this function call uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
65+
//~^ WARNING requires the `avx` target feature, which is not enabled in the caller
66+
//~| WARNING requires the `avx` target feature, which is not enabled in the caller
6767
//~| WARNING this was previously accepted by the compiler
6868
//~| WARNING this was previously accepted by the compiler
6969
}
7070

7171
unsafe {
7272
gavx(favx());
73-
//~^ WARNING this function call uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
74-
//~| WARNING this function call uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
73+
//~^ WARNING requires the `avx` target feature, which is not enabled in the caller
74+
//~| WARNING requires the `avx` target feature, which is not enabled in the caller
7575
//~| WARNING this was previously accepted by the compiler
7676
//~| WARNING this was previously accepted by the compiler
7777
}
@@ -82,8 +82,8 @@ fn main() {
8282

8383
unsafe {
8484
w(Wrapper(g()));
85-
//~^ WARNING this function call uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
86-
//~| WARNING this function call uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
85+
//~^ WARNING requires the `avx` target feature, which is not enabled in the caller
86+
//~| WARNING requires the `avx` target feature, which is not enabled in the caller
8787
//~| WARNING this was previously accepted by the compiler
8888
//~| WARNING this was previously accepted by the compiler
8989
}
@@ -98,7 +98,7 @@ fn main() {
9898
fn some_extern() -> __m256;
9999
}
100100
some_extern();
101-
//~^ WARNING this function call uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
101+
//~^ WARNING requires the `avx` target feature, which is not enabled in the caller
102102
//~| WARNING this was previously accepted by the compiler
103103
}
104104
}

‎tests/ui/simd-abi-checks.stderr

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
warning: this function call uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
1+
warning: this function call uses SIMD vector type `std::arch::x86_64::__m256` which (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
22
--> $DIR/simd-abi-checks.rs:64:11
33
|
44
LL | f(g());
@@ -9,7 +9,7 @@ LL | f(g());
99
= help: consider enabling it globally (`-C target-feature=+avx`) or locally (`#[target_feature(enable="avx")]`)
1010
= note: `#[warn(abi_unsupported_vector_types)]` on by default
1111

12-
warning: this function call uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
12+
warning: this function call uses SIMD vector type `std::arch::x86_64::__m256` which (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
1313
--> $DIR/simd-abi-checks.rs:64:9
1414
|
1515
LL | f(g());
@@ -19,7 +19,7 @@ LL | f(g());
1919
= note: for more information, see issue #116558 <https://github.com/rust-lang/rust/issues/116558>
2020
= help: consider enabling it globally (`-C target-feature=+avx`) or locally (`#[target_feature(enable="avx")]`)
2121

22-
warning: this function call uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
22+
warning: this function call uses SIMD vector type `std::arch::x86_64::__m256` which (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
2323
--> $DIR/simd-abi-checks.rs:72:14
2424
|
2525
LL | gavx(favx());
@@ -29,7 +29,7 @@ LL | gavx(favx());
2929
= note: for more information, see issue #116558 <https://github.com/rust-lang/rust/issues/116558>
3030
= help: consider enabling it globally (`-C target-feature=+avx`) or locally (`#[target_feature(enable="avx")]`)
3131

32-
warning: this function call uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
32+
warning: this function call uses SIMD vector type `std::arch::x86_64::__m256` which (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
3333
--> $DIR/simd-abi-checks.rs:72:9
3434
|
3535
LL | gavx(favx());
@@ -39,7 +39,7 @@ LL | gavx(favx());
3939
= note: for more information, see issue #116558 <https://github.com/rust-lang/rust/issues/116558>
4040
= help: consider enabling it globally (`-C target-feature=+avx`) or locally (`#[target_feature(enable="avx")]`)
4141

42-
warning: this function call uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
42+
warning: this function call uses SIMD vector type `std::arch::x86_64::__m256` which (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
4343
--> $DIR/simd-abi-checks.rs:84:19
4444
|
4545
LL | w(Wrapper(g()));
@@ -49,7 +49,7 @@ LL | w(Wrapper(g()));
4949
= note: for more information, see issue #116558 <https://github.com/rust-lang/rust/issues/116558>
5050
= help: consider enabling it globally (`-C target-feature=+avx`) or locally (`#[target_feature(enable="avx")]`)
5151

52-
warning: this function call uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
52+
warning: this function call uses SIMD vector type `Wrapper` which (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
5353
--> $DIR/simd-abi-checks.rs:84:9
5454
|
5555
LL | w(Wrapper(g()));
@@ -59,7 +59,7 @@ LL | w(Wrapper(g()));
5959
= note: for more information, see issue #116558 <https://github.com/rust-lang/rust/issues/116558>
6060
= help: consider enabling it globally (`-C target-feature=+avx`) or locally (`#[target_feature(enable="avx")]`)
6161

62-
warning: this function call uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
62+
warning: this function call uses SIMD vector type `std::arch::x86_64::__m256` which (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
6363
--> $DIR/simd-abi-checks.rs:100:9
6464
|
6565
LL | some_extern();
@@ -69,7 +69,7 @@ LL | some_extern();
6969
= note: for more information, see issue #116558 <https://github.com/rust-lang/rust/issues/116558>
7070
= help: consider enabling it globally (`-C target-feature=+avx`) or locally (`#[target_feature(enable="avx")]`)
7171

72-
warning: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled
72+
warning: this function definition uses SIMD vector type `std::arch::x86_64::__m256` which (with the chosen ABI) requires the `avx` target feature, which is not enabled
7373
--> $DIR/simd-abi-checks.rs:27:1
7474
|
7575
LL | unsafe extern "C" fn g() -> __m256 {
@@ -79,7 +79,7 @@ LL | unsafe extern "C" fn g() -> __m256 {
7979
= note: for more information, see issue #116558 <https://github.com/rust-lang/rust/issues/116558>
8080
= help: consider enabling it globally (`-C target-feature=+avx`) or locally (`#[target_feature(enable="avx")]`)
8181

82-
warning: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled
82+
warning: this function definition uses SIMD vector type `std::arch::x86_64::__m256` which (with the chosen ABI) requires the `avx` target feature, which is not enabled
8383
--> $DIR/simd-abi-checks.rs:21:1
8484
|
8585
LL | unsafe extern "C" fn f(_: __m256) {
@@ -89,7 +89,7 @@ LL | unsafe extern "C" fn f(_: __m256) {
8989
= note: for more information, see issue #116558 <https://github.com/rust-lang/rust/issues/116558>
9090
= help: consider enabling it globally (`-C target-feature=+avx`) or locally (`#[target_feature(enable="avx")]`)
9191

92-
warning: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled
92+
warning: this function definition uses SIMD vector type `Wrapper` which (with the chosen ABI) requires the `avx` target feature, which is not enabled
9393
--> $DIR/simd-abi-checks.rs:15:1
9494
|
9595
LL | unsafe extern "C" fn w(_: Wrapper) {
@@ -99,7 +99,7 @@ LL | unsafe extern "C" fn w(_: Wrapper) {
9999
= note: for more information, see issue #116558 <https://github.com/rust-lang/rust/issues/116558>
100100
= help: consider enabling it globally (`-C target-feature=+avx`) or locally (`#[target_feature(enable="avx")]`)
101101

102-
warning: this function call uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
102+
warning: this function call uses SIMD vector type `std::arch::x86_64::__m256` which (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
103103
--> $DIR/simd-abi-checks.rs:57:8
104104
|
105105
LL | || g()
@@ -112,7 +112,7 @@ LL | || g()
112112
warning: 11 warnings emitted
113113

114114
Future incompatibility report: Future breakage diagnostic:
115-
warning: this function call uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
115+
warning: this function call uses SIMD vector type `std::arch::x86_64::__m256` which (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
116116
--> $DIR/simd-abi-checks.rs:64:11
117117
|
118118
LL | f(g());
@@ -124,7 +124,7 @@ LL | f(g());
124124
= note: `#[warn(abi_unsupported_vector_types)]` on by default
125125

126126
Future breakage diagnostic:
127-
warning: this function call uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
127+
warning: this function call uses SIMD vector type `std::arch::x86_64::__m256` which (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
128128
--> $DIR/simd-abi-checks.rs:64:9
129129
|
130130
LL | f(g());
@@ -136,7 +136,7 @@ LL | f(g());
136136
= note: `#[warn(abi_unsupported_vector_types)]` on by default
137137

138138
Future breakage diagnostic:
139-
warning: this function call uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
139+
warning: this function call uses SIMD vector type `std::arch::x86_64::__m256` which (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
140140
--> $DIR/simd-abi-checks.rs:72:14
141141
|
142142
LL | gavx(favx());
@@ -148,7 +148,7 @@ LL | gavx(favx());
148148
= note: `#[warn(abi_unsupported_vector_types)]` on by default
149149

150150
Future breakage diagnostic:
151-
warning: this function call uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
151+
warning: this function call uses SIMD vector type `std::arch::x86_64::__m256` which (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
152152
--> $DIR/simd-abi-checks.rs:72:9
153153
|
154154
LL | gavx(favx());
@@ -160,7 +160,7 @@ LL | gavx(favx());
160160
= note: `#[warn(abi_unsupported_vector_types)]` on by default
161161

162162
Future breakage diagnostic:
163-
warning: this function call uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
163+
warning: this function call uses SIMD vector type `std::arch::x86_64::__m256` which (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
164164
--> $DIR/simd-abi-checks.rs:84:19
165165
|
166166
LL | w(Wrapper(g()));
@@ -172,7 +172,7 @@ LL | w(Wrapper(g()));
172172
= note: `#[warn(abi_unsupported_vector_types)]` on by default
173173

174174
Future breakage diagnostic:
175-
warning: this function call uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
175+
warning: this function call uses SIMD vector type `Wrapper` which (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
176176
--> $DIR/simd-abi-checks.rs:84:9
177177
|
178178
LL | w(Wrapper(g()));
@@ -184,7 +184,7 @@ LL | w(Wrapper(g()));
184184
= note: `#[warn(abi_unsupported_vector_types)]` on by default
185185

186186
Future breakage diagnostic:
187-
warning: this function call uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
187+
warning: this function call uses SIMD vector type `std::arch::x86_64::__m256` which (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
188188
--> $DIR/simd-abi-checks.rs:100:9
189189
|
190190
LL | some_extern();
@@ -196,7 +196,7 @@ LL | some_extern();
196196
= note: `#[warn(abi_unsupported_vector_types)]` on by default
197197

198198
Future breakage diagnostic:
199-
warning: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled
199+
warning: this function definition uses SIMD vector type `std::arch::x86_64::__m256` which (with the chosen ABI) requires the `avx` target feature, which is not enabled
200200
--> $DIR/simd-abi-checks.rs:27:1
201201
|
202202
LL | unsafe extern "C" fn g() -> __m256 {
@@ -208,7 +208,7 @@ LL | unsafe extern "C" fn g() -> __m256 {
208208
= note: `#[warn(abi_unsupported_vector_types)]` on by default
209209

210210
Future breakage diagnostic:
211-
warning: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled
211+
warning: this function definition uses SIMD vector type `std::arch::x86_64::__m256` which (with the chosen ABI) requires the `avx` target feature, which is not enabled
212212
--> $DIR/simd-abi-checks.rs:21:1
213213
|
214214
LL | unsafe extern "C" fn f(_: __m256) {
@@ -220,7 +220,7 @@ LL | unsafe extern "C" fn f(_: __m256) {
220220
= note: `#[warn(abi_unsupported_vector_types)]` on by default
221221

222222
Future breakage diagnostic:
223-
warning: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled
223+
warning: this function definition uses SIMD vector type `Wrapper` which (with the chosen ABI) requires the `avx` target feature, which is not enabled
224224
--> $DIR/simd-abi-checks.rs:15:1
225225
|
226226
LL | unsafe extern "C" fn w(_: Wrapper) {
@@ -232,7 +232,7 @@ LL | unsafe extern "C" fn w(_: Wrapper) {
232232
= note: `#[warn(abi_unsupported_vector_types)]` on by default
233233

234234
Future breakage diagnostic:
235-
warning: this function call uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
235+
warning: this function call uses SIMD vector type `std::arch::x86_64::__m256` which (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
236236
--> $DIR/simd-abi-checks.rs:57:8
237237
|
238238
LL | || g()

‎tests/ui/sse-abi-checks.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ pub struct SseVector([i64; 2]);
1919

2020
#[no_mangle]
2121
pub unsafe extern "C" fn f(_: SseVector) {
22-
//~^ this function definition uses a SIMD vector type that (with the chosen ABI) requires the `sse` target feature, which is not enabled
22+
//~^ this function definition uses SIMD vector type `SseVector` which (with the chosen ABI) requires the `sse` target feature, which is not enabled
2323
//~| WARNING this was previously accepted by the compiler
2424
}

‎tests/ui/sse-abi-checks.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
warning: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `sse` target feature, which is not enabled
1+
warning: this function definition uses SIMD vector type `SseVector` which (with the chosen ABI) requires the `sse` target feature, which is not enabled
22
--> $DIR/sse-abi-checks.rs:21:1
33
|
44
LL | pub unsafe extern "C" fn f(_: SseVector) {
@@ -12,7 +12,7 @@ LL | pub unsafe extern "C" fn f(_: SseVector) {
1212
warning: 1 warning emitted
1313

1414
Future incompatibility report: Future breakage diagnostic:
15-
warning: this function definition uses a SIMD vector type that (with the chosen ABI) requires the `sse` target feature, which is not enabled
15+
warning: this function definition uses SIMD vector type `SseVector` which (with the chosen ABI) requires the `sse` target feature, which is not enabled
1616
--> $DIR/sse-abi-checks.rs:21:1
1717
|
1818
LL | pub unsafe extern "C" fn f(_: SseVector) {

0 commit comments

Comments
 (0)
Please sign in to comment.