-
Notifications
You must be signed in to change notification settings - Fork 954
Closed
Description
Rustfmt fails to format the following file, even though rustc happily compiles it.
I am using cfg here to repro, but the more important case in practice would be to allow non-standard ABI in the input of procedural macro attributes like https://github.com/dtolnay/cxx.
#[cfg(any())]
extern "C++" {}
error[E0703]: invalid ABI: found `C++`
--> /git/testing/src/main.rs:2:8
|
2 | extern "C++" {}
| ^^^^^ invalid ABI
|
= help: valid ABIs: cdecl, stdcall, fastcall, vectorcall, thiscall, aapcs, win64, sysv64, ptx-kernel, msp430-interrupt, x86-interrupt, amdgpu-kernel, Rust, C, system, rust-intrinsic, rust-call, platform-intrinsic, unadjusted
Metadata
Metadata
Assignees
Labels
No labels