Fix debuginfo scope issue with Box

This commit is contained in:
Vadim Petrochenkov 2017-01-30 23:18:29 +03:00
parent a5d725cc82
commit 93e3f634b0

View File

@ -400,7 +400,7 @@ fn get_containing_scope<'ccx, 'tcx>(cx: &CrateContext<'ccx, 'tcx>,
// Only "class" methods are generally understood by LLVM,
// so avoid methods on other types (e.g. `<*mut T>::null`).
match impl_self_ty.sty {
ty::TyAdt(..) => {
ty::TyAdt(def, ..) if !def.is_box() => {
Some(type_metadata(cx, impl_self_ty, syntax_pos::DUMMY_SP))
}
_ => None