1
Fork 0

Lint Abi in ast validation.

This commit is contained in:
Camille GILLOT 2021-07-08 21:58:05 +02:00
parent daa4dc997c
commit 8d7d488d3b
6 changed files with 61 additions and 50 deletions

View file

@ -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.