@@ -418,7 +418,7 @@ impl Clean<Item> for doctree::Module {
418418pub trait Attributes {
419419 fn has_word ( & self , & str ) -> bool ;
420420 fn value < ' a > ( & ' a self , & str ) -> Option < & ' a str > ;
421- fn list_def < ' a > ( & ' a self , & str ) -> & ' a [ Attribute ] ;
421+ fn list < ' a > ( & ' a self , & str ) -> & ' a [ Attribute ] ;
422422}
423423
424424impl Attributes for [ Attribute ] {
@@ -447,7 +447,7 @@ impl Attributes for [Attribute] {
447447 }
448448
449449 /// Finds an attribute as List and returns the list of attributes nested inside.
450- fn list_def < ' a > ( & ' a self , name : & str ) -> & ' a [ Attribute ] {
450+ fn list < ' a > ( & ' a self , name : & str ) -> & ' a [ Attribute ] {
451451 for attr in self {
452452 if let List ( ref x, ref list) = * attr {
453453 if name == * x {
@@ -1535,7 +1535,7 @@ impl PrimitiveType {
15351535 }
15361536
15371537 fn find ( attrs : & [ Attribute ] ) -> Option < PrimitiveType > {
1538- for attr in attrs. list_def ( "doc" ) {
1538+ for attr in attrs. list ( "doc" ) {
15391539 if let NameValue ( ref k, ref v) = * attr {
15401540 if "primitive" == * k {
15411541 if let ret@Some ( ..) = PrimitiveType :: from_str ( v) {
@@ -1885,7 +1885,7 @@ impl<'tcx> Clean<Item> for ty::VariantDefData<'tcx, 'static> {
18851885 source : Span :: empty ( ) ,
18861886 name : Some ( field. name . clean ( cx) ) ,
18871887 attrs : Vec :: new ( ) ,
1888- visibility : Some ( hir :: Public ) ,
1888+ visibility : Some ( field . vis ) ,
18891889 // FIXME: this is not accurate, we need an id for
18901890 // the specific field but we're using the id
18911891 // for the whole variant. Thus we read the
0 commit comments