Auto merge of #87114 - cjgillot:abilint, r=estebank
Lint missing Abi in ast validation instead of lowering.
This commit is contained in:
commit
b27ccbc7e1
6 changed files with 61 additions and 50 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue