@@ -49,7 +49,7 @@ use crate::constraints::{OutlivesConstraint, OutlivesConstraintSet};
4949use crate :: diagnostics:: UniverseInfo ;
5050use crate :: member_constraints:: MemberConstraintSet ;
5151use crate :: polonius:: PoloniusContext ;
52- use crate :: polonius:: legacy:: { AllFacts , PoloniusLocationTable } ;
52+ use crate :: polonius:: legacy:: { PoloniusFacts , PoloniusLocationTable } ;
5353use crate :: region_infer:: TypeTest ;
5454use crate :: region_infer:: values:: { LivenessValues , PlaceholderIndex , PlaceholderIndices } ;
5555use crate :: renumber:: RegionCtxt ;
@@ -100,7 +100,7 @@ mod relate_tys;
100100/// - `universal_regions` -- the universal regions from `body`s function signature
101101/// - `location_table` -- for datalog polonius, the map between `Location`s and `RichLocation`s
102102/// - `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
104104/// - `flow_inits` -- results of a maybe-init dataflow analysis
105105/// - `move_data` -- move-data constructed when performing the maybe-init dataflow analysis
106106/// - `location_map` -- map between MIR `Location` and `PointIndex`
@@ -111,7 +111,7 @@ pub(crate) fn type_check<'a, 'tcx>(
111111 universal_regions : UniversalRegions < ' tcx > ,
112112 location_table : & PoloniusLocationTable ,
113113 borrow_set : & BorrowSet < ' tcx > ,
114- all_facts : & mut Option < AllFacts > ,
114+ polonius_facts : & mut Option < PoloniusFacts > ,
115115 flow_inits : ResultsCursor < ' a , ' tcx , MaybeInitializedPlaces < ' a , ' tcx > > ,
116116 move_data : & MoveData < ' tcx > ,
117117 location_map : Rc < DenseLocationMap > ,
@@ -165,7 +165,7 @@ pub(crate) fn type_check<'a, 'tcx>(
165165 reported_errors : Default :: default ( ) ,
166166 universal_regions : & universal_region_relations. universal_regions ,
167167 location_table,
168- all_facts ,
168+ polonius_facts ,
169169 borrow_set,
170170 constraints : & mut constraints,
171171 polonius_context : & mut polonius_context,
@@ -495,14 +495,14 @@ impl<'a, 'b, 'tcx> TypeVerifier<'a, 'b, 'tcx> {
495495
496496 // Use new sets of constraints and closure bounds so that we can
497497 // modify their locations.
498- let all_facts = & mut None ;
498+ let polonius_facts = & mut None ;
499499 let mut constraints = Default :: default ( ) ;
500500 let mut liveness_constraints =
501501 LivenessValues :: without_specific_points ( Rc :: new ( DenseLocationMap :: new ( promoted_body) ) ) ;
502502 // Don't try to add borrow_region facts for the promoted MIR
503503
504504 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 ) ;
506506 mem:: swap ( & mut this. typeck . constraints . outlives_constraints , & mut constraints) ;
507507 mem:: swap ( & mut this. typeck . constraints . liveness_constraints , & mut liveness_constraints) ;
508508 } ;
@@ -561,7 +561,7 @@ struct TypeChecker<'a, 'tcx> {
561561 reported_errors : FxIndexSet < ( Ty < ' tcx > , Span ) > ,
562562 universal_regions : & ' a UniversalRegions < ' tcx > ,
563563 location_table : & ' a PoloniusLocationTable ,
564- all_facts : & ' a mut Option < AllFacts > ,
564+ polonius_facts : & ' a mut Option < PoloniusFacts > ,
565565 borrow_set : & ' a BorrowSet < ' tcx > ,
566566 constraints : & ' a mut MirTypeckRegionConstraints < ' tcx > ,
567567 /// When using `-Zpolonius=next`, the helper data used to create polonius constraints.
@@ -2327,18 +2327,18 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
23272327 borrowed_place : & Place < ' tcx > ,
23282328 ) {
23292329 // 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 ;
23312331
23322332 // In Polonius mode, we also push a `loan_issued_at` fact
23332333 // linking the loan to the region (in some cases, though,
23342334 // there is no loan associated with this borrow expression --
23352335 // that occurs when we are borrowing an unsafe place, for
23362336 // example).
2337- if let Some ( all_facts ) = all_facts {
2337+ if let Some ( polonius_facts ) = polonius_facts {
23382338 let _prof_timer = self . infcx . tcx . prof . generic_activity ( "polonius_fact_generation" ) ;
23392339 if let Some ( borrow_index) = borrow_set. get_index_of ( & location) {
23402340 let region_vid = borrow_region. as_var ( ) ;
2341- all_facts . loan_issued_at . push ( (
2341+ polonius_facts . loan_issued_at . push ( (
23422342 region_vid. into ( ) ,
23432343 borrow_index,
23442344 location_table. mid_index ( location) ,
0 commit comments