@@ -44,7 +44,7 @@ pub fn krate(mut cx: &mut DocContext<'_>) -> Crate {
44
44
let mut masked_crates = FxHashSet :: default ( ) ;
45
45
46
46
match module. inner {
47
- ModuleItem ( ref module) => {
47
+ ItemEnum :: ModuleItem ( ref module) => {
48
48
for it in & module. items {
49
49
// `compiler_builtins` should be masked too, but we can't apply
50
50
// `#[doc(masked)]` to the injected `extern crate` because it's unstable.
@@ -62,31 +62,31 @@ pub fn krate(mut cx: &mut DocContext<'_>) -> Crate {
62
62
let ExternalCrate { name, src, primitives, keywords, .. } = LOCAL_CRATE . clean ( cx) ;
63
63
{
64
64
let m = match module. inner {
65
- ModuleItem ( ref mut m) => m,
65
+ ItemEnum :: ModuleItem ( ref mut m) => m,
66
66
_ => unreachable ! ( ) ,
67
67
} ;
68
68
m. items . extend ( primitives. iter ( ) . map ( |& ( def_id, prim, ref attrs) | {
69
69
Item {
70
70
source : Span :: empty ( ) ,
71
71
name : Some ( prim. to_url_str ( ) . to_string ( ) ) ,
72
72
attrs : attrs. clone ( ) ,
73
- visibility : Public ,
73
+ visibility : Visibility :: Public ,
74
74
stability : get_stability ( cx, def_id) ,
75
75
deprecation : get_deprecation ( cx, def_id) ,
76
76
def_id,
77
- inner : PrimitiveItem ( prim) ,
77
+ inner : ItemEnum :: PrimitiveItem ( prim) ,
78
78
}
79
79
} ) ) ;
80
80
m. items . extend ( keywords. into_iter ( ) . map ( |( def_id, kw, attrs) | {
81
81
Item {
82
82
source : Span :: empty ( ) ,
83
83
name : Some ( kw. clone ( ) ) ,
84
84
attrs,
85
- visibility : Public ,
85
+ visibility : Visibility :: Public ,
86
86
stability : get_stability ( cx, def_id) ,
87
87
deprecation : get_deprecation ( cx, def_id) ,
88
88
def_id,
89
- inner : KeywordItem ( kw) ,
89
+ inner : ItemEnum :: KeywordItem ( kw) ,
90
90
}
91
91
} ) ) ;
92
92
}
@@ -353,7 +353,7 @@ pub fn build_deref_target_impls(cx: &DocContext<'_>,
353
353
354
354
for item in items {
355
355
let target = match item. inner {
356
- TypedefItem ( ref t, true ) => & t. type_ ,
356
+ ItemEnum :: TypedefItem ( ref t, true ) => & t. type_ ,
357
357
_ => continue ,
358
358
} ;
359
359
let primitive = match * target {
0 commit comments