Fix debuginfo scope issue with Box
This commit is contained in:
parent
a5d725cc82
commit
93e3f634b0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user