Auto merge of #87114 - cjgillot:abilint, r=estebank

Lint missing Abi in ast validation instead of lowering.
This commit is contained in:
bors 2021-09-02 06:06:24 +00:00
commit b27ccbc7e1
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.