Skip to content

Commit 74240b2

Browse files
committed
Remove ast::Visibility::inherit_from (it is unused and has obsolete semantics)
1 parent 1af79cf commit 74240b2

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/libsyntax/ast.rs

-9
Original file line numberDiff line numberDiff line change
@@ -1874,15 +1874,6 @@ pub enum Visibility {
18741874
Inherited,
18751875
}
18761876

1877-
impl Visibility {
1878-
pub fn inherit_from(&self, parent_visibility: Visibility) -> Visibility {
1879-
match *self {
1880-
Visibility::Inherited => parent_visibility,
1881-
Visibility::Public => *self
1882-
}
1883-
}
1884-
}
1885-
18861877
#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]
18871878
pub struct StructField_ {
18881879
pub kind: StructFieldKind,

0 commit comments

Comments
 (0)