Skip to content

Commit 1be3e64

Browse files
authored
Unrolled build for rust-lang#124486
Rollup merge of rust-lang#124486 - beetrees:vectorcall-tracking-issue, r=ehuss Add tracking issue and unstable book page for `"vectorcall"` ABI Originally added in 2015 by rust-lang#30567, the Windows `"vectorcall"` ABI didn't have a tracking issue until now. Tracking issue: rust-lang#124485
2 parents 27529d5 + fc1e52a commit 1be3e64

File tree

3 files changed

+28
-2
lines changed

3 files changed

+28
-2
lines changed

compiler/rustc_feature/src/unstable.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,6 @@ declare_features! (
177177

178178
/// Allows using the `unadjusted` ABI; perma-unstable.
179179
(internal, abi_unadjusted, "1.16.0", None),
180-
/// Allows using the `vectorcall` ABI.
181-
(unstable, abi_vectorcall, "1.7.0", None),
182180
/// Allows using `#![needs_allocator]`, an implementation detail of `#[global_allocator]`.
183181
(internal, allocator_internals, "1.20.0", None),
184182
/// Allows using `#[allow_internal_unsafe]`. This is an
@@ -243,6 +241,8 @@ declare_features! (
243241
// feature-group-start: internal feature gates
244242
// -------------------------------------------------------------------------
245243

244+
/// Allows using the `vectorcall` ABI.
245+
(unstable, abi_vectorcall, "1.7.0", Some(124485)),
246246
/// Allows features specific to auto traits.
247247
/// Renamed from `optin_builtin_traits`.
248248
(unstable, auto_traits, "1.50.0", Some(13231)),
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# `abi_vectorcall`
2+
3+
The tracking issue for this feature is: [#124485]
4+
5+
[#124485]: https://github.com/rust-lang/rust/issues/124485
6+
7+
------------------------
8+
9+
Adds support for the Windows `"vectorcall"` ABI, the equivalent of `__vectorcall` in MSVC.
10+
11+
```rust,ignore (only-windows-or-x86-or-x86-64)
12+
extern "vectorcall" {
13+
fn add_f64s(x: f64, y: f64) -> f64;
14+
}
15+
16+
fn main() {
17+
println!("{}", add_f64s(2.0, 4.0));
18+
}
19+
```

tests/ui/feature-gates/feature-gate-vectorcall.stderr

+7
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ error[E0658]: vectorcall is experimental and subject to change
44
LL | extern "vectorcall" fn f() {}
55
| ^^^^^^^^^^^^
66
|
7+
= note: see issue #124485 <https://github.com/rust-lang/rust/issues/124485> for more information
78
= help: add `#![feature(abi_vectorcall)]` to the crate attributes to enable
89
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
910

@@ -13,6 +14,7 @@ error[E0658]: vectorcall is experimental and subject to change
1314
LL | extern "vectorcall" fn m();
1415
| ^^^^^^^^^^^^
1516
|
17+
= note: see issue #124485 <https://github.com/rust-lang/rust/issues/124485> for more information
1618
= help: add `#![feature(abi_vectorcall)]` to the crate attributes to enable
1719
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
1820

@@ -22,6 +24,7 @@ error[E0658]: vectorcall is experimental and subject to change
2224
LL | extern "vectorcall" fn dm() {}
2325
| ^^^^^^^^^^^^
2426
|
27+
= note: see issue #124485 <https://github.com/rust-lang/rust/issues/124485> for more information
2528
= help: add `#![feature(abi_vectorcall)]` to the crate attributes to enable
2629
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
2730

@@ -31,6 +34,7 @@ error[E0658]: vectorcall is experimental and subject to change
3134
LL | extern "vectorcall" fn m() {}
3235
| ^^^^^^^^^^^^
3336
|
37+
= note: see issue #124485 <https://github.com/rust-lang/rust/issues/124485> for more information
3438
= help: add `#![feature(abi_vectorcall)]` to the crate attributes to enable
3539
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
3640

@@ -40,6 +44,7 @@ error[E0658]: vectorcall is experimental and subject to change
4044
LL | extern "vectorcall" fn im() {}
4145
| ^^^^^^^^^^^^
4246
|
47+
= note: see issue #124485 <https://github.com/rust-lang/rust/issues/124485> for more information
4348
= help: add `#![feature(abi_vectorcall)]` to the crate attributes to enable
4449
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
4550

@@ -49,6 +54,7 @@ error[E0658]: vectorcall is experimental and subject to change
4954
LL | type TA = extern "vectorcall" fn();
5055
| ^^^^^^^^^^^^
5156
|
57+
= note: see issue #124485 <https://github.com/rust-lang/rust/issues/124485> for more information
5258
= help: add `#![feature(abi_vectorcall)]` to the crate attributes to enable
5359
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
5460

@@ -58,6 +64,7 @@ error[E0658]: vectorcall is experimental and subject to change
5864
LL | extern "vectorcall" {}
5965
| ^^^^^^^^^^^^
6066
|
67+
= note: see issue #124485 <https://github.com/rust-lang/rust/issues/124485> for more information
6168
= help: add `#![feature(abi_vectorcall)]` to the crate attributes to enable
6269
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
6370

0 commit comments

Comments
 (0)