We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7023948 commit c923f04Copy full SHA for c923f04
src/librustc_codegen_llvm/debuginfo/mod.rs
@@ -475,7 +475,12 @@ impl DebugInfoMethods<'tcx> for CodegenCx<'ll, 'tcx> {
475
// so avoid methods on other types (e.g., `<*mut T>::null`).
476
match impl_self_ty.kind {
477
ty::Adt(def, ..) if !def.is_box() => {
478
- Some(type_metadata(cx, impl_self_ty, rustc_span::DUMMY_SP))
+ // Again, only create type information if full debuginfo is enabled
479
+ if cx.sess().opts.debuginfo == DebugInfo::Full {
480
+ Some(type_metadata(cx, impl_self_ty, rustc_span::DUMMY_SP))
481
+ } else {
482
+ Some(namespace::item_namespace(cx, def.did))
483
+ }
484
}
485
_ => None,
486
0 commit comments