diff options
| author | bors <bors@rust-lang.org> | 2024-04-16 06:41:11 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-04-16 06:41:11 +0000 |
| commit | 88d1a1c6fdf6e607606876cdab672eebdf6a3c71 (patch) | |
| tree | 438ae4e11b312666a2c073fff0184ec42aa7274f /compiler/rustc_codegen_ssa/src/debuginfo | |
| parent | 2f08c2c96501990caab0e47a095d76ffd6a31f16 (diff) | |
| parent | 3d3a584e4d88a572d68d7996122cda69a38dcf2e (diff) | |
| download | rust-88d1a1c6fdf6e607606876cdab672eebdf6a3c71.tar.gz rust-88d1a1c6fdf6e607606876cdab672eebdf6a3c71.zip | |
Auto merge of #3469 - rust-lang:rustup-2024-04-16, r=RalfJung
Automatic Rustup
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/debuginfo')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs b/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs index 64448441acb..5f0dcf9510f 100644 --- a/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs +++ b/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs @@ -202,6 +202,16 @@ fn push_debuginfo_type_name<'tcx>( } } } + ty::Pat(inner_type, pat) => { + if cpp_like_debuginfo { + output.push_str("pat$<"); + push_debuginfo_type_name(tcx, inner_type, true, output, visited); + // FIXME(wg-debugging): implement CPP like printing for patterns. + write!(output, ",{:?}>", pat).unwrap(); + } else { + write!(output, "{:?}", t).unwrap(); + } + } ty::Slice(inner_type) => { if cpp_like_debuginfo { output.push_str("slice2$<"); |
