X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Flibrustc_borrowck%2Fborrowck%2Fgather_loans%2Fgather_moves.rs;h=5c165fbad6943be5f3a815467348c2b7405e8480;hb=6f637da50c56a22f745fd056691da8c86824cd9b;hp=b76931c301748c44cc995473755bb1547833c017;hpb=d37cee3b0e859a1303ece1cade3176cc150d28b4;p=rust.git diff --git a/src/librustc_borrowck/borrowck/gather_loans/gather_moves.rs b/src/librustc_borrowck/borrowck/gather_loans/gather_moves.rs index b76931c3017..5c165fbad69 100644 --- a/src/librustc_borrowck/borrowck/gather_loans/gather_moves.rs +++ b/src/librustc_borrowck/borrowck/gather_loans/gather_moves.rs @@ -191,14 +191,14 @@ fn check_and_get_illegal_move_origin<'a, 'tcx>(bccx: &BorrowckCtxt<'a, 'tcx>, Categorization::Interior(ref b, mc::InteriorField(_)) | Categorization::Interior(ref b, mc::InteriorElement(Kind::Pattern)) => { match b.ty.sty { - ty::TyAdt(def, _) => { + ty::Adt(def, _) => { if def.has_dtor(bccx.tcx) { Some(cmt.clone()) } else { check_and_get_illegal_move_origin(bccx, b) } } - ty::TySlice(..) => Some(cmt.clone()), + ty::Slice(..) => Some(cmt.clone()), _ => { check_and_get_illegal_move_origin(bccx, b) }