mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 03:33:59 +00:00
Remove feature: crate
visibility modifier
This commit is contained in:
parent
01421e0cbd
commit
cbe6607422
@ -545,7 +545,7 @@ pub fn eq_defaultness(l: Defaultness, r: Defaultness) -> bool {
|
|||||||
pub fn eq_vis(l: &Visibility, r: &Visibility) -> bool {
|
pub fn eq_vis(l: &Visibility, r: &Visibility) -> bool {
|
||||||
use VisibilityKind::*;
|
use VisibilityKind::*;
|
||||||
match (&l.kind, &r.kind) {
|
match (&l.kind, &r.kind) {
|
||||||
(Public, Public) | (Inherited, Inherited) | (Crate(_), Crate(_)) => true,
|
(Public, Public) | (Inherited, Inherited) | (Crate, Crate) => true,
|
||||||
(Restricted { path: l, .. }, Restricted { path: r, .. }) => eq_path(l, r),
|
(Restricted { path: l, .. }, Restricted { path: r, .. }) => eq_path(l, r),
|
||||||
_ => false,
|
_ => false,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user