@@ -1600,7 +1600,7 @@ fn compile_submatch_continue(mut bcx: @mut Block,
1600
1600
let pat_ty = node_id_type ( bcx, pat_id) ;
1601
1601
let llbox = Load ( bcx, val) ;
1602
1602
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,
1604
1604
_ => GEPi ( bcx, llbox, [ 0 u, abi:: box_field_body] )
1605
1605
} ;
1606
1606
compile_submatch ( bcx, enter_uniq ( bcx, dm, m, col, val) ,
@@ -2220,7 +2220,7 @@ fn bind_irrefutable_pat(bcx: @mut Block,
2220
2220
let pat_ty = node_id_type ( bcx, pat. id ) ;
2221
2221
let llbox = Load ( bcx, val) ;
2222
2222
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,
2224
2224
_ => GEPi ( bcx, llbox, [ 0 u, abi:: box_field_body] )
2225
2225
} ;
2226
2226
bcx = bind_irrefutable_pat ( bcx, inner, unboxed, binding_mode) ;
0 commit comments