Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions compiler/rustc_middle/src/ty/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2399,10 +2399,10 @@ impl<'tcx> TyCtxt<'tcx> {
/// to build a full `Place` it's just a convenient way to grab a projection and modify it in
/// flight.
pub fn mk_place_elem(self, place: Place<'tcx>, elem: PlaceElem<'tcx>) -> Place<'tcx> {
let mut projection = place.projection.to_vec();
projection.push(elem);

Place { local: place.local, projection: self.mk_place_elems(&projection) }
Place {
local: place.local,
projection: self.mk_place_elems_from_iter(place.projection.iter().chain([elem])),
}
}

pub fn mk_poly_existential_predicates(
Expand Down
Loading