Skip to content

Commit 93e3f63

Browse files
committed
Fix debuginfo scope issue with Box
1 parent a5d725c commit 93e3f63

File tree

1 file changed

+1
-1
lines changed
  • src/librustc_trans/debuginfo

1 file changed

+1
-1
lines changed

src/librustc_trans/debuginfo/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ pub fn create_function_debug_context<'a, 'tcx>(cx: &CrateContext<'a, 'tcx>,
400400
// Only "class" methods are generally understood by LLVM,
401401
// so avoid methods on other types (e.g. `<*mut T>::null`).
402402
match impl_self_ty.sty {
403-
ty::TyAdt(..) => {
403+
ty::TyAdt(def, ..) if !def.is_box() => {
404404
Some(type_metadata(cx, impl_self_ty, syntax_pos::DUMMY_SP))
405405
}
406406
_ => None

0 commit comments

Comments
 (0)