Fix debuginfo scope issue with Box
· rust-lang/rust@93e3f63 (original) (raw)
File tree
1 file changed
lines changed
- src/librustc_trans/debuginfo
1 file changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -400,7 +400,7 @@ pub fn create_function_debug_context<'a, 'tcx>(cx: &CrateContext<'a, 'tcx>, | ||
400 | 400 | // Only "class" methods are generally understood by LLVM, |
401 | 401 | // so avoid methods on other types (e.g. `<*mut T>::null`). |
402 | 402 | match impl_self_ty.sty { |
403 | - ty::TyAdt(..) => { | |
403 | + ty::TyAdt(def, ..) if !def.is_box() => { | |
404 | 404 | Some(type_metadata(cx, impl_self_ty, syntax_pos::DUMMY_SP)) |
405 | 405 | } |
406 | 406 | _ => None |