@@ -40,7 +40,7 @@ use ty::layout::{Layout, TargetDataLayout};
40
40
use ty:: inhabitedness:: DefIdForest ;
41
41
use ty:: maps;
42
42
use ty:: steal:: Steal ;
43
- use util:: nodemap:: { NodeMap , NodeSet , DefIdMap , DefIdSet } ;
43
+ use util:: nodemap:: { NodeMap , NodeSet , DefIdSet } ;
44
44
use util:: nodemap:: { FxHashMap , FxHashSet } ;
45
45
use rustc_data_structures:: accumulate_vec:: AccumulateVec ;
46
46
@@ -499,33 +499,6 @@ pub struct GlobalCtxt<'tcx> {
499
499
/// Maps Expr NodeId's to `true` iff `&expr` can have 'static lifetime.
500
500
pub rvalue_promotable_to_static : RefCell < NodeMap < bool > > ,
501
501
502
- /// Maps Fn items to a collection of fragment infos.
503
- ///
504
- /// The main goal is to identify data (each of which may be moved
505
- /// or assigned) whose subparts are not moved nor assigned
506
- /// (i.e. their state is *unfragmented*) and corresponding ast
507
- /// nodes where the path to that data is moved or assigned.
508
- ///
509
- /// In the long term, unfragmented values will have their
510
- /// destructor entirely driven by a single stack-local drop-flag,
511
- /// and their parents, the collections of the unfragmented values
512
- /// (or more simply, "fragmented values"), are mapped to the
513
- /// corresponding collections of stack-local drop-flags.
514
- ///
515
- /// (However, in the short term that is not the case; e.g. some
516
- /// unfragmented paths still need to be zeroed, namely when they
517
- /// reference parent data from an outer scope that was not
518
- /// entirely moved, and therefore that needs to be zeroed so that
519
- /// we do not get double-drop when we hit the end of the parent
520
- /// scope.)
521
- ///
522
- /// Also: currently the table solely holds keys for node-ids of
523
- /// unfragmented values (see `FragmentInfo` enum definition), but
524
- /// longer-term we will need to also store mappings from
525
- /// fragmented data to the set of unfragmented pieces that
526
- /// constitute it.
527
- pub fragment_infos : RefCell < DefIdMap < Vec < ty:: FragmentInfo > > > ,
528
-
529
502
/// The definite name of the current crate after taking into account
530
503
/// attributes, commandline parameters, etc.
531
504
pub crate_name : Symbol ,
@@ -730,7 +703,6 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
730
703
selection_cache : traits:: SelectionCache :: new ( ) ,
731
704
evaluation_cache : traits:: EvaluationCache :: new ( ) ,
732
705
rvalue_promotable_to_static : RefCell :: new ( NodeMap ( ) ) ,
733
- fragment_infos : RefCell :: new ( DefIdMap ( ) ) ,
734
706
crate_name : Symbol :: intern ( crate_name) ,
735
707
data_layout : data_layout,
736
708
layout_cache : RefCell :: new ( FxHashMap ( ) ) ,
0 commit comments