diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2021-07-08 21:58:05 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-08-31 20:30:17 +0200 |
| commit | 8d7d488d3ba09ef5ac3fcdc12891b31a7d387f85 (patch) | |
| tree | a7f8f5a848fe265c769d335f37ca646b94f1a190 /compiler/rustc_target | |
| parent | daa4dc997c777676b0f0e48d0311cc5e7bde5f87 (diff) | |
| download | rust-8d7d488d3ba09ef5ac3fcdc12891b31a7d387f85.tar.gz rust-8d7d488d3ba09ef5ac3fcdc12891b31a7d387f85.zip | |
Lint Abi in ast validation.
Diffstat (limited to 'compiler/rustc_target')
| -rw-r--r-- | compiler/rustc_target/src/spec/abi.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_target/src/spec/abi.rs b/compiler/rustc_target/src/spec/abi.rs index ee36090c549..e3a2226eb9d 100644 --- a/compiler/rustc_target/src/spec/abi.rs +++ b/compiler/rustc_target/src/spec/abi.rs @@ -87,6 +87,9 @@ pub fn all_names() -> Vec<&'static str> { } impl Abi { + /// Default ABI chosen for `extern fn` declarations without an explicit ABI. + pub const FALLBACK: Abi = Abi::C { unwind: false }; + #[inline] pub fn index(self) -> usize { // N.B., this ordering MUST match the AbiDatas array above. |
