@@ -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 ,
@@ -70,7 +67,6 @@ pub(super) fn borrow_conflicts_with_place<'tcx>(
7067
7168 place_components_conflict (
7269 tcx,
73- param_env,
7470 body,
7571 borrow_place,
7672 borrow_kind,
@@ -82,7 +78,6 @@ pub(super) fn borrow_conflicts_with_place<'tcx>(
8278
8379fn place_components_conflict < ' tcx > (
8480 tcx : TyCtxt < ' tcx > ,
85- param_env : ty:: ParamEnv < ' tcx > ,
8681 body : & Body < ' tcx > ,
8782 borrow_place : & Place < ' tcx > ,
8883 borrow_kind : BorrowKind ,
@@ -135,7 +130,7 @@ fn place_components_conflict<'tcx>(
135130 let borrow_base = & borrow_place. base ;
136131 let access_base = access_place. base ;
137132
138- match place_base_conflict ( tcx, param_env , borrow_base, access_base) {
133+ match place_base_conflict ( tcx, borrow_base, access_base) {
139134 Overlap :: Arbitrary => {
140135 bug ! ( "Two base can't return Arbitrary" ) ;
141136 }
@@ -310,7 +305,6 @@ fn place_components_conflict<'tcx>(
310305// between `elem1` and `elem2`.
311306fn place_base_conflict < ' tcx > (
312307 tcx : TyCtxt < ' tcx > ,
313- _param_env : ty:: ParamEnv < ' tcx > ,
314308 elem1 : & PlaceBase < ' tcx > ,
315309 elem2 : & PlaceBase < ' tcx > ,
316310) -> Overlap {
0 commit comments