diff options
| author | The Miri Conjob Bot <miri@cron.bot> | 2023-08-12 05:33:13 +0000 |
|---|---|---|
| committer | The Miri Conjob Bot <miri@cron.bot> | 2023-08-12 05:33:13 +0000 |
| commit | b122fa6d6a4cfd380a1a3e41a436e560100ea8b9 (patch) | |
| tree | 9686e408db723e928ea465aba698b17ca2f2f888 /compiler/rustc_codegen_llvm/src/debuginfo | |
| parent | 85de27ee87a75eedc67a5b8d50d71f199ee7e9e5 (diff) | |
| parent | 6f5b4e358145066dfe76251e89eb40c531c4bb51 (diff) | |
| download | rust-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.rs | 2 |
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. |
