Skip to content

Commit

Permalink
Remove unnecessary abi import
Browse files Browse the repository at this point in the history
  • Loading branch information
CraftSpider committed Nov 17, 2020
1 parent c825c74 commit e8426a6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion compiler/rustc_typeck/src/check/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ pub(super) fn check_fn<'a, 'tcx>(

fn_maybe_err(tcx, span, fn_sig.abi);

if fn_sig.abi == abi::Abi::RustCall {
if fn_sig.abi == Abi::RustCall {
let expected_args = if let ImplicitSelfKind::None = decl.implicit_self { 1 } else { 2 };

let err = || {
Expand Down
1 change: 0 additions & 1 deletion compiler/rustc_typeck/src/check/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ use crate::util::common::indenter;

use self::coercion::DynamicCoerceMany;
pub use self::Expectation::*;
use rustc_target::spec::abi;

#[macro_export]
macro_rules! type_error_struct {
Expand Down

0 comments on commit e8426a6

Please sign in to comment.