Remove `ast::Visibility::inherit_from` (it is unused and has obsolete semantics)
This commit is contained in:
parent
1af79cf34e
commit
74240b22d9
|
@ -1874,15 +1874,6 @@ pub enum Visibility {
|
|||
Inherited,
|
||||
}
|
||||
|
||||
impl Visibility {
|
||||
pub fn inherit_from(&self, parent_visibility: Visibility) -> Visibility {
|
||||
match *self {
|
||||
Visibility::Inherited => parent_visibility,
|
||||
Visibility::Public => *self
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]
|
||||
pub struct StructField_ {
|
||||
pub kind: StructFieldKind,
|
||||
|
|
Loading…
Reference in New Issue