Skip to content

Commit

Permalink
Rollup merge of rust-lang#97254 - jhpratt:remove-crate-vis, r=cjgillot
Browse files Browse the repository at this point in the history
Remove feature: `crate` visibility modifier

FCP completed in rust-lang#53120.
  • Loading branch information
Dylan-DPC authored May 23, 2022
2 parents 8ec9e5e + a319937 commit 77d2b10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_utils/src/ast_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down

0 comments on commit 77d2b10

Please sign in to comment.