diff options
| author | Gary Guo <gary@garyguo.net> | 2021-11-06 20:01:35 +0000 |
|---|---|---|
| committer | Gary Guo <gary@garyguo.net> | 2021-11-07 04:00:34 +0000 |
| commit | c4103d438fa922edbe5c40085f40b96656c6b18a (patch) | |
| tree | bded6fb2603bb5d7b2bda64f2207126ae59db735 /compiler/rustc_codegen_llvm | |
| parent | d0f59f6d6575e04d3e4d08e919ce01e29bc9e41e (diff) | |
| download | rust-c4103d438fa922edbe5c40085f40b96656c6b18a.tar.gz rust-c4103d438fa922edbe5c40085f40b96656c6b18a.zip | |
Rename functions reflect that inline const is also "typeck_child"
Diffstat (limited to 'compiler/rustc_codegen_llvm')
| -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 1f1bd73c7d0..2a6bf7d9b1a 100644 --- a/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs +++ b/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs @@ -322,7 +322,7 @@ impl DebugInfoMethods<'tcx> for CodegenCx<'ll, 'tcx> { type_names::push_item_name(self.tcx(), def_id, false, &mut name); // Find the enclosing function, in case this is a closure. - let enclosing_fn_def_id = self.tcx().closure_base_def_id(def_id); + let enclosing_fn_def_id = self.tcx().typeck_root_def_id(def_id); // Get_template_parameters() will append a `<...>` clause to the function // name if necessary. |
