mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 15:11:30 +00:00
ast: Add span to Extern
This commit is contained in:
parent
09f5df5087
commit
ab23b3aa8a
2 changed files with 3 additions and 3 deletions
|
@ -94,7 +94,7 @@ impl ExcessiveBools {
|
||||||
|
|
||||||
fn check_fn_sig(&self, cx: &EarlyContext<'_>, fn_sig: &FnSig, span: Span) {
|
fn check_fn_sig(&self, cx: &EarlyContext<'_>, fn_sig: &FnSig, span: Span) {
|
||||||
match fn_sig.header.ext {
|
match fn_sig.header.ext {
|
||||||
Extern::Implicit | Extern::Explicit(_) => return,
|
Extern::Implicit(_) | Extern::Explicit(_, _) => return,
|
||||||
Extern::None => (),
|
Extern::None => (),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -600,8 +600,8 @@ pub fn eq_ty(l: &Ty, r: &Ty) -> bool {
|
||||||
pub fn eq_ext(l: &Extern, r: &Extern) -> bool {
|
pub fn eq_ext(l: &Extern, r: &Extern) -> bool {
|
||||||
use Extern::*;
|
use Extern::*;
|
||||||
match (l, r) {
|
match (l, r) {
|
||||||
(None, None) | (Implicit, Implicit) => true,
|
(None, None) | (Implicit(_), Implicit(_)) => true,
|
||||||
(Explicit(l), Explicit(r)) => eq_str_lit(l, r),
|
(Explicit(l,_), Explicit(r,_)) => eq_str_lit(l, r),
|
||||||
_ => false,
|
_ => false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue