@@ -49,7 +49,7 @@ use crate::constraints::{OutlivesConstraint, OutlivesConstraintSet};
49
49
use crate :: diagnostics:: UniverseInfo ;
50
50
use crate :: member_constraints:: MemberConstraintSet ;
51
51
use crate :: polonius:: PoloniusContext ;
52
- use crate :: polonius:: legacy:: { AllFacts , PoloniusLocationTable } ;
52
+ use crate :: polonius:: legacy:: { PoloniusFacts , PoloniusLocationTable } ;
53
53
use crate :: region_infer:: TypeTest ;
54
54
use crate :: region_infer:: values:: { LivenessValues , PlaceholderIndex , PlaceholderIndices } ;
55
55
use crate :: renumber:: RegionCtxt ;
@@ -100,7 +100,7 @@ mod relate_tys;
100
100
/// - `universal_regions` -- the universal regions from `body`s function signature
101
101
/// - `location_table` -- for datalog polonius, the map between `Location`s and `RichLocation`s
102
102
/// - `borrow_set` -- information about borrows occurring in `body`
103
- /// - `all_facts ` -- when using Polonius, this is the generated set of Polonius facts
103
+ /// - `polonius_facts ` -- when using Polonius, this is the generated set of Polonius facts
104
104
/// - `flow_inits` -- results of a maybe-init dataflow analysis
105
105
/// - `move_data` -- move-data constructed when performing the maybe-init dataflow analysis
106
106
/// - `location_map` -- map between MIR `Location` and `PointIndex`
@@ -111,7 +111,7 @@ pub(crate) fn type_check<'a, 'tcx>(
111
111
universal_regions : UniversalRegions < ' tcx > ,
112
112
location_table : & PoloniusLocationTable ,
113
113
borrow_set : & BorrowSet < ' tcx > ,
114
- all_facts : & mut Option < AllFacts > ,
114
+ polonius_facts : & mut Option < PoloniusFacts > ,
115
115
flow_inits : ResultsCursor < ' a , ' tcx , MaybeInitializedPlaces < ' a , ' tcx > > ,
116
116
move_data : & MoveData < ' tcx > ,
117
117
location_map : Rc < DenseLocationMap > ,
@@ -165,7 +165,7 @@ pub(crate) fn type_check<'a, 'tcx>(
165
165
reported_errors : Default :: default ( ) ,
166
166
universal_regions : & universal_region_relations. universal_regions ,
167
167
location_table,
168
- all_facts ,
168
+ polonius_facts ,
169
169
borrow_set,
170
170
constraints : & mut constraints,
171
171
polonius_context : & mut polonius_context,
@@ -495,14 +495,14 @@ impl<'a, 'b, 'tcx> TypeVerifier<'a, 'b, 'tcx> {
495
495
496
496
// Use new sets of constraints and closure bounds so that we can
497
497
// modify their locations.
498
- let all_facts = & mut None ;
498
+ let polonius_facts = & mut None ;
499
499
let mut constraints = Default :: default ( ) ;
500
500
let mut liveness_constraints =
501
501
LivenessValues :: without_specific_points ( Rc :: new ( DenseLocationMap :: new ( promoted_body) ) ) ;
502
502
// Don't try to add borrow_region facts for the promoted MIR
503
503
504
504
let mut swap_constraints = |this : & mut Self | {
505
- mem:: swap ( this. typeck . all_facts , all_facts ) ;
505
+ mem:: swap ( this. typeck . polonius_facts , polonius_facts ) ;
506
506
mem:: swap ( & mut this. typeck . constraints . outlives_constraints , & mut constraints) ;
507
507
mem:: swap ( & mut this. typeck . constraints . liveness_constraints , & mut liveness_constraints) ;
508
508
} ;
@@ -561,7 +561,7 @@ struct TypeChecker<'a, 'tcx> {
561
561
reported_errors : FxIndexSet < ( Ty < ' tcx > , Span ) > ,
562
562
universal_regions : & ' a UniversalRegions < ' tcx > ,
563
563
location_table : & ' a PoloniusLocationTable ,
564
- all_facts : & ' a mut Option < AllFacts > ,
564
+ polonius_facts : & ' a mut Option < PoloniusFacts > ,
565
565
borrow_set : & ' a BorrowSet < ' tcx > ,
566
566
constraints : & ' a mut MirTypeckRegionConstraints < ' tcx > ,
567
567
/// When using `-Zpolonius=next`, the helper data used to create polonius constraints.
@@ -2327,18 +2327,18 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
2327
2327
borrowed_place : & Place < ' tcx > ,
2328
2328
) {
2329
2329
// These constraints are only meaningful during borrowck:
2330
- let Self { borrow_set, location_table, all_facts , constraints, .. } = self ;
2330
+ let Self { borrow_set, location_table, polonius_facts , constraints, .. } = self ;
2331
2331
2332
2332
// In Polonius mode, we also push a `loan_issued_at` fact
2333
2333
// linking the loan to the region (in some cases, though,
2334
2334
// there is no loan associated with this borrow expression --
2335
2335
// that occurs when we are borrowing an unsafe place, for
2336
2336
// example).
2337
- if let Some ( all_facts ) = all_facts {
2337
+ if let Some ( polonius_facts ) = polonius_facts {
2338
2338
let _prof_timer = self . infcx . tcx . prof . generic_activity ( "polonius_fact_generation" ) ;
2339
2339
if let Some ( borrow_index) = borrow_set. get_index_of ( & location) {
2340
2340
let region_vid = borrow_region. as_var ( ) ;
2341
- all_facts . loan_issued_at . push ( (
2341
+ polonius_facts . loan_issued_at . push ( (
2342
2342
region_vid. into ( ) ,
2343
2343
borrow_index,
2344
2344
location_table. mid_index ( location) ,
0 commit comments