@@ -96,8 +96,6 @@ struct LoweringContext<'a, 'hir> {
9696
9797 /// Bodies inside the owner being lowered.
9898 bodies : Vec < ( hir:: ItemLocalId , & ' hir hir:: Body < ' hir > ) > ,
99- /// Whether there were inline consts that typeck will split out into bodies
100- has_inline_consts : bool ,
10199 /// Attributes inside the owner being lowered.
102100 attrs : SortedMap < hir:: ItemLocalId , & ' hir [ Attribute ] > ,
103101 /// Collect items that were created by lowering the current owner.
@@ -160,7 +158,6 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
160158 item_local_id_counter : hir:: ItemLocalId :: ZERO ,
161159 node_id_to_local_id : Default :: default ( ) ,
162160 trait_map : Default :: default ( ) ,
163- has_inline_consts : false ,
164161
165162 // Lowering state.
166163 catch_scope : None ,
@@ -570,7 +567,6 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
570567
571568 let current_attrs = std:: mem:: take ( & mut self . attrs ) ;
572569 let current_bodies = std:: mem:: take ( & mut self . bodies ) ;
573- let current_has_inline_consts = std:: mem:: take ( & mut self . has_inline_consts ) ;
574570 let current_node_ids = std:: mem:: take ( & mut self . node_id_to_local_id ) ;
575571 let current_trait_map = std:: mem:: take ( & mut self . trait_map ) ;
576572 let current_owner =
@@ -597,7 +593,6 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
597593
598594 self . attrs = current_attrs;
599595 self . bodies = current_bodies;
600- self . has_inline_consts = current_has_inline_consts;
601596 self . node_id_to_local_id = current_node_ids;
602597 self . trait_map = current_trait_map;
603598 self . current_hir_id_owner = current_owner;
@@ -634,7 +629,6 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
634629 let attrs = std:: mem:: take ( & mut self . attrs ) ;
635630 let mut bodies = std:: mem:: take ( & mut self . bodies ) ;
636631 let trait_map = std:: mem:: take ( & mut self . trait_map ) ;
637- let has_inline_consts = std:: mem:: take ( & mut self . has_inline_consts ) ;
638632
639633 #[ cfg( debug_assertions) ]
640634 for ( id, attrs) in attrs. iter ( ) {
@@ -652,7 +646,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
652646 self . tcx . hash_owner_nodes ( node, & bodies, & attrs) ;
653647 let num_nodes = self . item_local_id_counter . as_usize ( ) ;
654648 let ( nodes, parenting) = index:: index_hir ( self . tcx , node, & bodies, num_nodes) ;
655- let nodes = hir:: OwnerNodes { opt_hash_including_bodies, nodes, bodies, has_inline_consts } ;
649+ let nodes = hir:: OwnerNodes { opt_hash_including_bodies, nodes, bodies } ;
656650 let attrs = hir:: AttributeMap { map : attrs, opt_hash : attrs_hash } ;
657651
658652 self . arena . alloc ( hir:: OwnerInfo { nodes, parenting, attrs, trait_map } )
0 commit comments