about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/debuginfo
diff options
context:
space:
mode:
authorThe Miri Conjob Bot <miri@cron.bot>2023-08-12 05:33:13 +0000
committerThe Miri Conjob Bot <miri@cron.bot>2023-08-12 05:33:13 +0000
commitb122fa6d6a4cfd380a1a3e41a436e560100ea8b9 (patch)
tree9686e408db723e928ea465aba698b17ca2f2f888 /compiler/rustc_codegen_llvm/src/debuginfo
parent85de27ee87a75eedc67a5b8d50d71f199ee7e9e5 (diff)
parent6f5b4e358145066dfe76251e89eb40c531c4bb51 (diff)
downloadrust-b122fa6d6a4cfd380a1a3e41a436e560100ea8b9.tar.gz
rust-b122fa6d6a4cfd380a1a3e41a436e560100ea8b9.zip
Merge from rustc
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/debuginfo')
-rw-r--r--compiler/rustc_codegen_llvm/src/debuginfo/gdb.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/debuginfo/gdb.rs b/compiler/rustc_codegen_llvm/src/debuginfo/gdb.rs
index ef7c661936a..425e935bc9f 100644
--- a/compiler/rustc_codegen_llvm/src/debuginfo/gdb.rs
+++ b/compiler/rustc_codegen_llvm/src/debuginfo/gdb.rs
@@ -92,7 +92,7 @@ pub fn needs_gdb_debug_scripts_section(cx: &CodegenCx<'_, '_>) -> bool {
     // each rlib could produce a different set of visualizers that would be embedded
     // in the `.debug_gdb_scripts` section. For that reason, we make sure that the
     // section is only emitted for leaf crates.
-    let embed_visualizers = cx.sess().crate_types().iter().any(|&crate_type| match crate_type {
+    let embed_visualizers = cx.tcx.crate_types().iter().any(|&crate_type| match crate_type {
         CrateType::Executable | CrateType::Dylib | CrateType::Cdylib | CrateType::Staticlib => {
             // These are crate types for which we will embed pretty printers since they
             // are treated as leaf crates.