Skip to content

Commit f66487b

Browse files
compiler: Remove superfluous renaming import of ExternAbi
1 parent 8aafcc8 commit f66487b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

compiler/rustc_abi/src/extern_abi.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ use crate::AbiFromStrErr;
1212
#[cfg(test)]
1313
mod tests;
1414

15-
use ExternAbi as Abi;
16-
1715
/// ABI we expect to see within `extern "{abi}"`
1816
#[derive(Clone, Copy, Debug)]
1917
#[cfg_attr(feature = "nightly", derive(Encodable, Decodable))]
@@ -253,7 +251,7 @@ pub fn all_names() -> Vec<&'static str> {
253251

254252
impl ExternAbi {
255253
/// Default ABI chosen for `extern fn` declarations without an explicit ABI.
256-
pub const FALLBACK: Abi = Abi::C { unwind: false };
254+
pub const FALLBACK: ExternAbi = ExternAbi::C { unwind: false };
257255

258256
pub fn name(self) -> &'static str {
259257
self.as_str()

0 commit comments

Comments
 (0)