Skip to content

Commit 53994bd

Browse files
authored
Remove extern vectorcall tests (rust-lang#13702)
On arm64 I get ``` error[E0570]: `"vectorcall"` is not a supported ABI for the current target ``` We don't seem to be doing any ABI specific handling so it seems fine to just remove this one since there are other tests changelog: none
2 parents 7a1e9f2 + 90de44a commit 53994bd

File tree

3 files changed

+3
-33
lines changed

3 files changed

+3
-33
lines changed

tests/ui/missing_const_for_fn/could_be_const.fixed

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#![warn(clippy::missing_const_for_fn)]
22
#![allow(incomplete_features, clippy::let_and_return, clippy::missing_transmute_annotations)]
3-
#![feature(const_trait_impl, abi_vectorcall)]
3+
#![feature(const_trait_impl)]
44

55
use std::mem::transmute;
66

@@ -211,8 +211,4 @@ mod extern_fn {
211211
//~^ ERROR: this could be a `const fn`
212212
const extern "system-unwind" fn system_unwind() {}
213213
//~^ ERROR: this could be a `const fn`
214-
pub const extern "vectorcall" fn std_call() {}
215-
//~^ ERROR: this could be a `const fn`
216-
pub const extern "vectorcall-unwind" fn std_call_unwind() {}
217-
//~^ ERROR: this could be a `const fn`
218214
}

tests/ui/missing_const_for_fn/could_be_const.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#![warn(clippy::missing_const_for_fn)]
22
#![allow(incomplete_features, clippy::let_and_return, clippy::missing_transmute_annotations)]
3-
#![feature(const_trait_impl, abi_vectorcall)]
3+
#![feature(const_trait_impl)]
44

55
use std::mem::transmute;
66

@@ -211,8 +211,4 @@ mod extern_fn {
211211
//~^ ERROR: this could be a `const fn`
212212
extern "system-unwind" fn system_unwind() {}
213213
//~^ ERROR: this could be a `const fn`
214-
pub extern "vectorcall" fn std_call() {}
215-
//~^ ERROR: this could be a `const fn`
216-
pub extern "vectorcall-unwind" fn std_call_unwind() {}
217-
//~^ ERROR: this could be a `const fn`
218214
}

tests/ui/missing_const_for_fn/could_be_const.stderr

+1-23
Original file line numberDiff line numberDiff line change
@@ -316,27 +316,5 @@ help: make the function `const`
316316
LL | const extern "system-unwind" fn system_unwind() {}
317317
| +++++
318318

319-
error: this could be a `const fn`
320-
--> tests/ui/missing_const_for_fn/could_be_const.rs:214:5
321-
|
322-
LL | pub extern "vectorcall" fn std_call() {}
323-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
324-
|
325-
help: make the function `const`
326-
|
327-
LL | pub const extern "vectorcall" fn std_call() {}
328-
| +++++
329-
330-
error: this could be a `const fn`
331-
--> tests/ui/missing_const_for_fn/could_be_const.rs:216:5
332-
|
333-
LL | pub extern "vectorcall-unwind" fn std_call_unwind() {}
334-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
335-
|
336-
help: make the function `const`
337-
|
338-
LL | pub const extern "vectorcall-unwind" fn std_call_unwind() {}
339-
| +++++
340-
341-
error: aborting due to 26 previous errors
319+
error: aborting due to 24 previous errors
342320

0 commit comments

Comments
 (0)