@@ -1600,7 +1600,7 @@ fn compile_submatch_continue(mut bcx: @mut Block,
16001600 let pat_ty = node_id_type ( bcx, pat_id) ;
16011601 let llbox = Load ( bcx, val) ;
16021602 let unboxed = match ty:: get ( pat_ty) . sty {
1603- ty:: ty_uniq( * ) if !ty:: type_contents ( bcx. tcx ( ) , pat_ty) . contains_managed ( ) => llbox,
1603+ ty:: ty_uniq( * ) if !ty:: type_contents ( bcx. tcx ( ) , pat_ty) . owns_managed ( ) => llbox,
16041604 _ => GEPi ( bcx, llbox, [ 0 u, abi:: box_field_body] )
16051605 } ;
16061606 compile_submatch ( bcx, enter_uniq ( bcx, dm, m, col, val) ,
@@ -2220,7 +2220,7 @@ fn bind_irrefutable_pat(bcx: @mut Block,
22202220 let pat_ty = node_id_type ( bcx, pat. id ) ;
22212221 let llbox = Load ( bcx, val) ;
22222222 let unboxed = match ty:: get ( pat_ty) . sty {
2223- ty:: ty_uniq( * ) if !ty:: type_contents ( bcx. tcx ( ) , pat_ty) . contains_managed ( ) => llbox,
2223+ ty:: ty_uniq( * ) if !ty:: type_contents ( bcx. tcx ( ) , pat_ty) . owns_managed ( ) => llbox,
22242224 _ => GEPi ( bcx, llbox, [ 0 u, abi:: box_field_body] )
22252225 } ;
22262226 bcx = bind_irrefutable_pat ( bcx, inner, unboxed, binding_mode) ;
0 commit comments