@@ -418,7 +418,7 @@ impl Clean<Item> for doctree::Module {
418
418
pub trait Attributes {
419
419
fn has_word ( & self , & str ) -> bool ;
420
420
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 ] ;
422
422
}
423
423
424
424
impl Attributes for [ Attribute ] {
@@ -447,7 +447,7 @@ impl Attributes for [Attribute] {
447
447
}
448
448
449
449
/// 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 ] {
451
451
for attr in self {
452
452
if let List ( ref x, ref list) = * attr {
453
453
if name == * x {
@@ -1535,7 +1535,7 @@ impl PrimitiveType {
1535
1535
}
1536
1536
1537
1537
fn find ( attrs : & [ Attribute ] ) -> Option < PrimitiveType > {
1538
- for attr in attrs. list_def ( "doc" ) {
1538
+ for attr in attrs. list ( "doc" ) {
1539
1539
if let NameValue ( ref k, ref v) = * attr {
1540
1540
if "primitive" == * k {
1541
1541
if let ret@Some ( ..) = PrimitiveType :: from_str ( v) {
@@ -1885,7 +1885,7 @@ impl<'tcx> Clean<Item> for ty::VariantDefData<'tcx, 'static> {
1885
1885
source : Span :: empty ( ) ,
1886
1886
name : Some ( field. name . clean ( cx) ) ,
1887
1887
attrs : Vec :: new ( ) ,
1888
- visibility : Some ( hir :: Public ) ,
1888
+ visibility : Some ( field . vis ) ,
1889
1889
// FIXME: this is not accurate, we need an id for
1890
1890
// the specific field but we're using the id
1891
1891
// for the whole variant. Thus we read the
0 commit comments