Skip to content

Commit ab23b3a

Browse files
committed
ast: Add span to Extern
1 parent 09f5df5 commit ab23b3a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clippy_lints/src/excessive_bools.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ impl ExcessiveBools {
9494

9595
fn check_fn_sig(&self, cx: &EarlyContext<'_>, fn_sig: &FnSig, span: Span) {
9696
match fn_sig.header.ext {
97-
Extern::Implicit | Extern::Explicit(_) => return,
97+
Extern::Implicit(_) | Extern::Explicit(_, _) => return,
9898
Extern::None => (),
9999
}
100100

clippy_utils/src/ast_utils.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -600,8 +600,8 @@ pub fn eq_ty(l: &Ty, r: &Ty) -> bool {
600600
pub fn eq_ext(l: &Extern, r: &Extern) -> bool {
601601
use Extern::*;
602602
match (l, r) {
603-
(None, None) | (Implicit, Implicit) => true,
604-
(Explicit(l), Explicit(r)) => eq_str_lit(l, r),
603+
(None, None) | (Implicit(_), Implicit(_)) => true,
604+
(Explicit(l,_), Explicit(r,_)) => eq_str_lit(l, r),
605605
_ => false,
606606
}
607607
}

0 commit comments

Comments
 (0)