diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-05-23 07:43:50 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-23 07:43:50 +0200 |
| commit | 77d2b100509646a26435d69f97aee7d031a0aa37 (patch) | |
| tree | 7b1c5073cf38855cccc19ea8be972aef147906be | |
| parent | 8ec9e5e1616efab820d0a3c4adcf3b76c2663f77 (diff) | |
| parent | a3199375bdcb7f6d1b6946dccfe2fee1dcf999d7 (diff) | |
| download | rust-77d2b100509646a26435d69f97aee7d031a0aa37.tar.gz rust-77d2b100509646a26435d69f97aee7d031a0aa37.zip | |
Rollup merge of #97254 - jhpratt:remove-crate-vis, r=cjgillot
Remove feature: `crate` visibility modifier FCP completed in #53120.
| -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, } |
