diff options
| author | bors <bors@rust-lang.org> | 2023-02-17 04:45:15 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-02-17 04:45:15 +0000 |
| commit | 9556b56dbdbd4238f0051e7230004b0aa488fa14 (patch) | |
| tree | 239e87d32d56548dd262905ead28de9f0500fa8c /compiler/rustc_codegen_llvm/src | |
| parent | ea218392a4ce119c4dfcd8fb94a7fee77f76f2c5 (diff) | |
| parent | f6c3469aa2f445c0eb4a7598175cba969ef4b948 (diff) | |
| download | rust-9556b56dbdbd4238f0051e7230004b0aa488fa14.tar.gz rust-9556b56dbdbd4238f0051e7230004b0aa488fa14.zip | |
Auto merge of #107753 - kylematsuda:type-of, r=BoxyUwU
Switch to `EarlyBinder` for `type_of` query Part of the work to finish #105779 and implement https://github.com/rust-lang/types-team/issues/78. Several queries `X` have a `bound_X` variant that wraps the output in `EarlyBinder`. This adds `EarlyBinder` to the return type of the `type_of` query and removes `bound_type_of`. r? `@lcnr`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -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 ca7a07d8391..cef403b9f8b 100644 --- a/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs +++ b/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs @@ -508,7 +508,7 @@ impl<'ll, 'tcx> DebugInfoMethods<'tcx> for CodegenCx<'ll, 'tcx> { let impl_self_ty = cx.tcx.subst_and_normalize_erasing_regions( instance.substs, ty::ParamEnv::reveal_all(), - cx.tcx.type_of(impl_def_id), + cx.tcx.type_of(impl_def_id).skip_binder(), ); // Only "class" methods are generally understood by LLVM, |
