]> git.lizzy.rs Git - rust.git/blobdiff - src/utils/mod.rs
Merge pull request #727 from oli-obk/similar_names
[rust.git] / src / utils / mod.rs
index 16174e434d4a84402a0f6e62e66a5b511580aeeb..050aec0e43041824864086a02b6108dd26b14c77 100644 (file)
@@ -102,8 +102,8 @@ macro_rules! if_let_chain {
 
 /// Returns true if the two spans come from differing expansions (i.e. one is from a macro and one
 /// isn't).
-pub fn differing_macro_contexts(sp1: Span, sp2: Span) -> bool {
-    sp1.expn_id != sp2.expn_id
+pub fn differing_macro_contexts(lhs: Span, rhs: Span) -> bool {
+    rhs.expn_id != lhs.expn_id
 }
 /// Returns true if this `expn_info` was expanded by any macro.
 pub fn in_macro<T: LintContext>(cx: &T, span: Span) -> bool {