diff options
| author | bors <bors@rust-lang.org> | 2021-11-06 22:55:37 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-11-06 22:55:37 +0000 |
| commit | 089a016919b0a9daaed9f676804102d6ba3f8f9d (patch) | |
| tree | f46a71dfffab593de738042085740e615520c0a0 /compiler/rustc_codegen_ssa | |
| parent | 0727994435c75fdedd3e9d226cf434089b0ab585 (diff) | |
| parent | ec471de865b6f93f384d1903cc53c39a6057a8aa (diff) | |
| download | rust-089a016919b0a9daaed9f676804102d6ba3f8f9d.tar.gz rust-089a016919b0a9daaed9f676804102d6ba3f8f9d.zip | |
Auto merge of #90661 - matthiaskrgr:rollup-1umbdlx, r=matthiaskrgr
Rollup of 6 pull requests Successful merges: - #90487 (Add a chapter on reading Rustdoc output) - #90508 (Apply adjustments for field expression even if inaccessible) - #90627 (Suggest dereference of `Box` when inner type is expected) - #90642 (use matches!() macro in more places) - #90646 (type error go brrrrrrrr) - #90649 (Run reveal_all on MIR when inlining is activated.) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_codegen_ssa')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs b/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs index accb54e4645..ab119ae25f5 100644 --- a/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs +++ b/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs @@ -124,10 +124,7 @@ fn push_debuginfo_type_name<'tcx>( // info for MSVC debugger. However, wrapping these types' names in a synthetic type // causes the .natvis engine for WinDbg to fail to display their data, so we opt these // types out to aid debugging in MSVC. - let is_slice_or_str = match *inner_type.kind() { - ty::Slice(_) | ty::Str => true, - _ => false, - }; + let is_slice_or_str = matches!(*inner_type.kind(), ty::Slice(_) | ty::Str); if !cpp_like_names { output.push('&'); |
