@@ -2857,23 +2857,27 @@ impl<'a, 'ast, 'ra, 'tcx> LateResolutionVisitor<'a, 'ast, 'ra, 'tcx> {
28572857 ) ;
28582858 self . resolve_define_opaques ( define_opaque) ;
28592859 }
2860- ItemKind :: ConstBlock ( ConstBlockItem { body } ) => self . with_generic_param_rib (
2861- & [ ] ,
2862- RibKind :: Item ( HasGenericParams :: No , def_kind) ,
2863- item. id ,
2864- LifetimeBinderKind :: ConstItem ,
2865- DUMMY_SP ,
2866- |this| {
2867- this. with_lifetime_rib ( LifetimeRibKind :: Elided ( LifetimeRes :: Infer ) , |this| {
2868- this. with_constant_rib (
2869- IsRepeatExpr :: No ,
2870- ConstantHasGenerics :: Yes ,
2871- Some ( ( ConstBlockItem :: IDENT , ConstantItemKind :: Const ) ) ,
2872- |this| this. visit_expr ( body) ,
2860+ ItemKind :: ConstBlock ( ConstBlockItem { id : _, span : _, block } ) => self
2861+ . with_generic_param_rib (
2862+ & [ ] ,
2863+ RibKind :: Item ( HasGenericParams :: No , def_kind) ,
2864+ item. id ,
2865+ LifetimeBinderKind :: ConstItem ,
2866+ DUMMY_SP ,
2867+ |this| {
2868+ this. with_lifetime_rib (
2869+ LifetimeRibKind :: Elided ( LifetimeRes :: Infer ) ,
2870+ |this| {
2871+ this. with_constant_rib (
2872+ IsRepeatExpr :: No ,
2873+ ConstantHasGenerics :: Yes ,
2874+ Some ( ( ConstBlockItem :: IDENT , ConstantItemKind :: Const ) ) ,
2875+ |this| this. resolve_labeled_block ( None , block. id , block) ,
2876+ )
2877+ } ,
28732878 ) ;
2874- } )
2875- } ,
2876- ) ,
2879+ } ,
2880+ ) ,
28772881
28782882 ItemKind :: Use ( use_tree) => {
28792883 let maybe_exported = match use_tree. kind {
0 commit comments