diff options
| author | lcnr <rust@lcnr.de> | 2021-07-17 18:48:07 +0200 |
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2021-08-26 11:00:30 +0200 |
| commit | ab9108b70f25ecd9cce1ab756b82cb00de6c6927 (patch) | |
| tree | e170e754ffe5d4fdad51e85fdb043a9cc98e1dc8 /compiler/rustc_codegen_llvm/src/debuginfo | |
| parent | cc47998e2877f13712a12b3814cc2bbf07fbae09 (diff) | |
| download | rust-ab9108b70f25ecd9cce1ab756b82cb00de6c6927.tar.gz rust-ab9108b70f25ecd9cce1ab756b82cb00de6c6927.zip | |
update `TypeFlags` to deal with missing ct substs
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/debuginfo')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/debuginfo/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs b/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs index 8375d4c7ca5..2e8a9604017 100644 --- a/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs +++ b/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs @@ -499,7 +499,7 @@ impl DebugInfoMethods<'tcx> for CodegenCx<'ll, 'tcx> { ty::Adt(def, ..) if !def.is_box() => { // Again, only create type information if full debuginfo is enabled if cx.sess().opts.debuginfo == DebugInfo::Full - && !impl_self_ty.needs_subst() + && !impl_self_ty.needs_subst(cx.tcx) { Some(type_metadata(cx, impl_self_ty, rustc_span::DUMMY_SP)) } else { |
