diff options
| author | bors <bors@rust-lang.org> | 2023-08-12 05:53:27 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-08-12 05:53:27 +0000 |
| commit | 05773210b757861d21baa902da5e4c73da7fc4b3 (patch) | |
| tree | 9686e408db723e928ea465aba698b17ca2f2f888 /compiler/rustc_codegen_llvm/src/debuginfo | |
| parent | 13acd4f239971619ce351fc6956a3678260506a1 (diff) | |
| parent | b122fa6d6a4cfd380a1a3e41a436e560100ea8b9 (diff) | |
| download | rust-05773210b757861d21baa902da5e4c73da7fc4b3.tar.gz rust-05773210b757861d21baa902da5e4c73da7fc4b3.zip | |
Auto merge of #3026 - rust-lang:rustup-2023-08-12, r=RalfJung
Automatic sync 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. |
