#[derive(Debug)]
struct DropCtxt<'l, 'b, 'tcx, D>
- where D : DropElaborator<'b, 'tcx> + 'l
+where
+ D: DropElaborator<'b, 'tcx>,
{
elaborator: &'l mut D,
path: D::Path,
succ: BasicBlock,
unwind: Unwind,
- bb: BasicBlock)
- where D: DropElaborator<'b, 'tcx>
+ bb: BasicBlock,
+) where
+ D: DropElaborator<'b, 'tcx>,
+ 'tcx: 'b,
{
DropCtxt {
elaborator, source_info, place, path, succ, unwind
impl<'l, 'b, 'tcx, D> DropCtxt<'l, 'b, 'tcx, D>
where
D: DropElaborator<'b, 'tcx>,
+ 'tcx: 'b,
{
fn place_ty(&self, place: &Place<'tcx>) -> Ty<'tcx> {
place.ty(self.elaborator.body(), self.tcx()).ty