diff options
| author | Nixon Enraght-Moony <nixon.emoony@gmail.com> | 2022-07-02 18:25:55 +0100 |
|---|---|---|
| committer | Nixon Enraght-Moony <nixon.emoony@gmail.com> | 2022-07-02 23:30:03 +0100 |
| commit | 18ca2946e0663d772079bf6f3d07d70d97369068 (patch) | |
| tree | aabc07d6b9074c7012226831b8161dccc4886856 /compiler/rustc_ast_lowering/src | |
| parent | 5018181c79a6fe37913fd931005ad2a63c85be7b (diff) | |
| download | rust-18ca2946e0663d772079bf6f3d07d70d97369068.tar.gz rust-18ca2946e0663d772079bf6f3d07d70d97369068.zip | |
ast: Add span to `Extern`
Diffstat (limited to 'compiler/rustc_ast_lowering/src')
| -rw-r--r-- | compiler/rustc_ast_lowering/src/item.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_ast_lowering/src/item.rs b/compiler/rustc_ast_lowering/src/item.rs index 0ef21371694..112197c6e39 100644 --- a/compiler/rustc_ast_lowering/src/item.rs +++ b/compiler/rustc_ast_lowering/src/item.rs @@ -1272,8 +1272,8 @@ impl<'hir> LoweringContext<'_, 'hir> { pub(super) fn lower_extern(&mut self, ext: Extern) -> abi::Abi { match ext { Extern::None => abi::Abi::Rust, - Extern::Implicit => abi::Abi::FALLBACK, - Extern::Explicit(abi) => self.lower_abi(abi), + Extern::Implicit(_) => abi::Abi::FALLBACK, + Extern::Explicit(abi, _) => self.lower_abi(abi), } } |
