@@ -96,8 +96,6 @@ struct LoweringContext<'a, 'hir> {
96
96
97
97
/// Bodies inside the owner being lowered.
98
98
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 ,
101
99
/// Attributes inside the owner being lowered.
102
100
attrs : SortedMap < hir:: ItemLocalId , & ' hir [ Attribute ] > ,
103
101
/// Collect items that were created by lowering the current owner.
@@ -160,7 +158,6 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
160
158
item_local_id_counter : hir:: ItemLocalId :: ZERO ,
161
159
node_id_to_local_id : Default :: default ( ) ,
162
160
trait_map : Default :: default ( ) ,
163
- has_inline_consts : false ,
164
161
165
162
// Lowering state.
166
163
catch_scope : None ,
@@ -570,7 +567,6 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
570
567
571
568
let current_attrs = std:: mem:: take ( & mut self . attrs ) ;
572
569
let current_bodies = std:: mem:: take ( & mut self . bodies ) ;
573
- let current_has_inline_consts = std:: mem:: take ( & mut self . has_inline_consts ) ;
574
570
let current_node_ids = std:: mem:: take ( & mut self . node_id_to_local_id ) ;
575
571
let current_trait_map = std:: mem:: take ( & mut self . trait_map ) ;
576
572
let current_owner =
@@ -597,7 +593,6 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
597
593
598
594
self . attrs = current_attrs;
599
595
self . bodies = current_bodies;
600
- self . has_inline_consts = current_has_inline_consts;
601
596
self . node_id_to_local_id = current_node_ids;
602
597
self . trait_map = current_trait_map;
603
598
self . current_hir_id_owner = current_owner;
@@ -634,7 +629,6 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
634
629
let attrs = std:: mem:: take ( & mut self . attrs ) ;
635
630
let mut bodies = std:: mem:: take ( & mut self . bodies ) ;
636
631
let trait_map = std:: mem:: take ( & mut self . trait_map ) ;
637
- let has_inline_consts = std:: mem:: take ( & mut self . has_inline_consts ) ;
638
632
639
633
#[ cfg( debug_assertions) ]
640
634
for ( id, attrs) in attrs. iter ( ) {
@@ -652,7 +646,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
652
646
self . tcx . hash_owner_nodes ( node, & bodies, & attrs) ;
653
647
let num_nodes = self . item_local_id_counter . as_usize ( ) ;
654
648
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 } ;
656
650
let attrs = hir:: AttributeMap { map : attrs, opt_hash : attrs_hash } ;
657
651
658
652
self . arena . alloc ( hir:: OwnerInfo { nodes, parenting, attrs, trait_map } )
0 commit comments