@@ -23,15 +23,13 @@ crate enum PlaceConflictBias {
2323/// dataflow).
2424crate fn places_conflict < ' tcx > (
2525 tcx : TyCtxt < ' tcx > ,
26- param_env : ty:: ParamEnv < ' tcx > ,
2726 body : & Body < ' tcx > ,
2827 borrow_place : & Place < ' tcx > ,
2928 access_place : & Place < ' tcx > ,
3029 bias : PlaceConflictBias ,
3130) -> bool {
3231 borrow_conflicts_with_place (
3332 tcx,
34- param_env,
3533 body,
3634 borrow_place,
3735 BorrowKind :: Mut { allow_two_phase_borrow : true } ,
@@ -47,7 +45,6 @@ crate fn places_conflict<'tcx>(
4745/// order to make the conservative choice and preserve soundness.
4846pub ( super ) fn borrow_conflicts_with_place < ' tcx > (
4947 tcx : TyCtxt < ' tcx > ,
50- param_env : ty:: ParamEnv < ' tcx > ,
5148 body : & Body < ' tcx > ,
5249 borrow_place : & Place < ' tcx > ,
5350 borrow_kind : BorrowKind ,
@@ -68,21 +65,11 @@ pub(super) fn borrow_conflicts_with_place<'tcx>(
6865 }
6966 }
7067
71- place_components_conflict (
72- tcx,
73- param_env,
74- body,
75- borrow_place,
76- borrow_kind,
77- access_place,
78- access,
79- bias,
80- )
68+ place_components_conflict ( tcx, body, borrow_place, borrow_kind, access_place, access, bias)
8169}
8270
8371fn place_components_conflict < ' tcx > (
8472 tcx : TyCtxt < ' tcx > ,
85- param_env : ty:: ParamEnv < ' tcx > ,
8673 body : & Body < ' tcx > ,
8774 borrow_place : & Place < ' tcx > ,
8875 borrow_kind : BorrowKind ,
@@ -135,7 +122,7 @@ fn place_components_conflict<'tcx>(
135122 let borrow_base = & borrow_place. base ;
136123 let access_base = access_place. base ;
137124
138- match place_base_conflict ( tcx, param_env , borrow_base, access_base) {
125+ match place_base_conflict ( tcx, borrow_base, access_base) {
139126 Overlap :: Arbitrary => {
140127 bug ! ( "Two base can't return Arbitrary" ) ;
141128 }
@@ -308,7 +295,6 @@ fn place_components_conflict<'tcx>(
308295// between `elem1` and `elem2`.
309296fn place_base_conflict < ' tcx > (
310297 tcx : TyCtxt < ' tcx > ,
311- _param_env : ty:: ParamEnv < ' tcx > ,
312298 elem1 : & PlaceBase < ' tcx > ,
313299 elem2 : & PlaceBase < ' tcx > ,
314300) -> Overlap {
0 commit comments