diff options
| author | bors <bors@rust-lang.org> | 2022-06-04 10:55:48 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-06-04 10:55:48 +0000 |
| commit | d9ddce8a223cb9916389c039777b6966ea448dc8 (patch) | |
| tree | cc8d493e7c3ac8985b90b0d87dd0a431d90b4c1a /clippy_utils/src/ast_utils.rs | |
| parent | 8ef490871c0cc0a3aff00976c6f00c7eab6d90c7 (diff) | |
| parent | 36b18924a7aef4f901af177ef54971d610297bdd (diff) | |
Auto merge of #8942 - flip1995:rustup, r=flip1995
Rustup r? `@ghost` changelog: none
Diffstat (limited to 'clippy_utils/src/ast_utils.rs')
| -rw-r--r-- | clippy_utils/src/ast_utils.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_utils/src/ast_utils.rs b/clippy_utils/src/ast_utils.rs index b379f8c06c6..6487199172e 100644 --- a/clippy_utils/src/ast_utils.rs +++ b/clippy_utils/src/ast_utils.rs @@ -545,7 +545,7 @@ pub fn eq_defaultness(l: Defaultness, r: Defaultness) -> bool { pub fn eq_vis(l: &Visibility, r: &Visibility) -> bool { use VisibilityKind::*; match (&l.kind, &r.kind) { - (Public, Public) | (Inherited, Inherited) | (Crate(_), Crate(_)) => true, + (Public, Public) | (Inherited, Inherited) => true, (Restricted { path: l, .. }, Restricted { path: r, .. }) => eq_path(l, r), _ => false, } |
