Skip to content

Commit

Permalink
Fix debuginfo scope issue with Box
Browse files Browse the repository at this point in the history
  • Loading branch information
petrochenkov committed Jan 30, 2017
1 parent a5d725c commit 93e3f63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_trans/debuginfo/mod.rs
Expand Up @@ -400,7 +400,7 @@ pub fn create_function_debug_context<'a, 'tcx>(cx: &CrateContext<'a, '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
Expand Down

0 comments on commit 93e3f63

Please sign in to comment.