@@ -2898,23 +2898,27 @@ impl<'a, 'ast, 'ra, 'tcx> LateResolutionVisitor<'a, 'ast, 'ra, 'tcx> {
28982898 ) ;
28992899 self . resolve_define_opaques ( define_opaque) ;
29002900 }
2901- ItemKind :: ConstBlock ( ConstBlockItem { body } ) => self . with_generic_param_rib (
2902- & [ ] ,
2903- RibKind :: Item ( HasGenericParams :: No , def_kind) ,
2904- item. id ,
2905- LifetimeBinderKind :: ConstItem ,
2906- DUMMY_SP ,
2907- |this| {
2908- this. with_lifetime_rib ( LifetimeRibKind :: Elided ( LifetimeRes :: Infer ) , |this| {
2909- this. with_constant_rib (
2910- IsRepeatExpr :: No ,
2911- ConstantHasGenerics :: Yes ,
2912- Some ( ( ConstBlockItem :: IDENT , ConstantItemKind :: Const ) ) ,
2913- |this| this. visit_expr ( body) ,
2901+ ItemKind :: ConstBlock ( ConstBlockItem { id : _, span : _, block } ) => self
2902+ . with_generic_param_rib (
2903+ & [ ] ,
2904+ RibKind :: Item ( HasGenericParams :: No , def_kind) ,
2905+ item. id ,
2906+ LifetimeBinderKind :: ConstItem ,
2907+ DUMMY_SP ,
2908+ |this| {
2909+ this. with_lifetime_rib (
2910+ LifetimeRibKind :: Elided ( LifetimeRes :: Infer ) ,
2911+ |this| {
2912+ this. with_constant_rib (
2913+ IsRepeatExpr :: No ,
2914+ ConstantHasGenerics :: Yes ,
2915+ Some ( ( ConstBlockItem :: IDENT , ConstantItemKind :: Const ) ) ,
2916+ |this| this. resolve_labeled_block ( None , block. id , block) ,
2917+ )
2918+ } ,
29142919 ) ;
2915- } )
2916- } ,
2917- ) ,
2920+ } ,
2921+ ) ,
29182922
29192923 ItemKind :: Use ( use_tree) => {
29202924 let maybe_exported = match use_tree. kind {
0 commit comments