about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJubilee Young <workingjubilee@gmail.com>2025-06-24 15:22:59 -0700
committerJubilee Young <workingjubilee@gmail.com>2025-06-25 00:54:02 -0700
commit78652b783dd1549d4782c2daba7d12214e001b54 (patch)
treef6080d066ea840a9aa9b5fc9c0dab4e2814b6ef3
parent12d05d868fd43d6d930d7d9f9648ae7443751003 (diff)
downloadrust-78652b783dd1549d4782c2daba7d12214e001b54.tar.gz
rust-78652b783dd1549d4782c2daba7d12214e001b54.zip
tests: specify why extern "rust-invalid" cannot be used in varargs test
-rw-r--r--tests/ui/abi/unsupported-varargs-fnptr.rs1
-rw-r--r--tests/ui/abi/unsupported-varargs-fnptr.stderr2
2 files changed, 2 insertions, 1 deletions
diff --git a/tests/ui/abi/unsupported-varargs-fnptr.rs b/tests/ui/abi/unsupported-varargs-fnptr.rs
index 733e16c7e4b..1d23916d039 100644
--- a/tests/ui/abi/unsupported-varargs-fnptr.rs
+++ b/tests/ui/abi/unsupported-varargs-fnptr.rs
@@ -1,5 +1,6 @@
 // FIXME(workingjubilee): add revisions and generalize to other platform-specific varargs ABIs,
 // preferably after the only-arch directive is enhanced with an "or pattern" syntax
+// NOTE: This deliberately tests an ABI that supports varargs, so no `extern "rust-invalid"`
 //@ only-x86_64
 
 // We have to use this flag to force ABI computation of an invalid ABI
diff --git a/tests/ui/abi/unsupported-varargs-fnptr.stderr b/tests/ui/abi/unsupported-varargs-fnptr.stderr
index 445e57df9d8..238f2b31330 100644
--- a/tests/ui/abi/unsupported-varargs-fnptr.stderr
+++ b/tests/ui/abi/unsupported-varargs-fnptr.stderr
@@ -1,5 +1,5 @@
 error[E0570]: "aapcs" is not a supported ABI for the current target
-  --> $DIR/unsupported-varargs-fnptr.rs:13:20
+  --> $DIR/unsupported-varargs-fnptr.rs:14:20
    |
 LL | fn aapcs(f: extern "aapcs" fn(usize, ...)) {
    |                    ^^^^^^^