@@ -44,7 +44,7 @@ pub fn krate(mut cx: &mut DocContext<'_>) -> Crate {
4444 let mut masked_crates = FxHashSet :: default ( ) ;
4545
4646 match module. inner {
47- ModuleItem ( ref module) => {
47+ ItemEnum :: ModuleItem ( ref module) => {
4848 for it in & module. items {
4949 // `compiler_builtins` should be masked too, but we can't apply
5050 // `#[doc(masked)]` to the injected `extern crate` because it's unstable.
@@ -62,31 +62,31 @@ pub fn krate(mut cx: &mut DocContext<'_>) -> Crate {
6262 let ExternalCrate { name, src, primitives, keywords, .. } = LOCAL_CRATE . clean ( cx) ;
6363 {
6464 let m = match module. inner {
65- ModuleItem ( ref mut m) => m,
65+ ItemEnum :: ModuleItem ( ref mut m) => m,
6666 _ => unreachable ! ( ) ,
6767 } ;
6868 m. items . extend ( primitives. iter ( ) . map ( |& ( def_id, prim, ref attrs) | {
6969 Item {
7070 source : Span :: empty ( ) ,
7171 name : Some ( prim. to_url_str ( ) . to_string ( ) ) ,
7272 attrs : attrs. clone ( ) ,
73- visibility : Public ,
73+ visibility : Visibility :: Public ,
7474 stability : get_stability ( cx, def_id) ,
7575 deprecation : get_deprecation ( cx, def_id) ,
7676 def_id,
77- inner : PrimitiveItem ( prim) ,
77+ inner : ItemEnum :: PrimitiveItem ( prim) ,
7878 }
7979 } ) ) ;
8080 m. items . extend ( keywords. into_iter ( ) . map ( |( def_id, kw, attrs) | {
8181 Item {
8282 source : Span :: empty ( ) ,
8383 name : Some ( kw. clone ( ) ) ,
8484 attrs,
85- visibility : Public ,
85+ visibility : Visibility :: Public ,
8686 stability : get_stability ( cx, def_id) ,
8787 deprecation : get_deprecation ( cx, def_id) ,
8888 def_id,
89- inner : KeywordItem ( kw) ,
89+ inner : ItemEnum :: KeywordItem ( kw) ,
9090 }
9191 } ) ) ;
9292 }
@@ -353,7 +353,7 @@ pub fn build_deref_target_impls(cx: &DocContext<'_>,
353353
354354 for item in items {
355355 let target = match item. inner {
356- TypedefItem ( ref t, true ) => & t. type_ ,
356+ ItemEnum :: TypedefItem ( ref t, true ) => & t. type_ ,
357357 _ => continue ,
358358 } ;
359359 let primitive = match * target {
0 commit comments