Skip to content

Commit 3b76349

Browse files
tests: specify why extern "rust-invalid" cannot be used in varargs test
1 parent b361148 commit 3b76349

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tests/ui/abi/unsupported-varargs-fnptr.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// FIXME(workingjubilee): add revisions and generalize to other platform-specific varargs ABIs,
22
// preferably after the only-arch directive is enhanced with an "or pattern" syntax
3+
// NOTE: This deliberately tests an ABI that supports varargs, so no `extern "rust-invalid"`
34
//@ only-x86_64
45

56
// We have to use this flag to force ABI computation of an invalid ABI

tests/ui/abi/unsupported-varargs-fnptr.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0570]: "aapcs" is not a supported ABI for the current target
2-
--> $DIR/unsupported-varargs-fnptr.rs:13:20
2+
--> $DIR/unsupported-varargs-fnptr.rs:14:20
33
|
44
LL | fn aapcs(f: extern "aapcs" fn(usize, ...)) {
55
| ^^^^^^^

0 commit comments

Comments
 (0)