diff options
| author | bors <bors@rust-lang.org> | 2020-09-04 17:07:39 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-09-04 17:07:39 +0000 |
| commit | d2454643e137bde519786ee9e650c455d7ad6f34 (patch) | |
| tree | ce7c0a9de68030f6e3ec440400065cbaa51adfa9 /compiler/rustc_codegen_ssa/src/debuginfo | |
| parent | 80cacd77954b39a6bc205213faa8c82c97eb0055 (diff) | |
| parent | 4d28a82c590aa77fbd1e5e0f8a0fe611c93b5a71 (diff) | |
| download | rust-d2454643e137bde519786ee9e650c455d7ad6f34.tar.gz rust-d2454643e137bde519786ee9e650c455d7ad6f34.zip | |
Auto merge of #75077 - LeSeulArtichaut:tys-kind, r=nikomatsakis
Refractor ty.kind -> ty.kind() and ty.flags -> ty.flags() First step for the ["shared library to represent Rust types"](https://rust-lang.github.io/compiler-team/minutes/design-meeting/2020-03-12-shared-library-for-types/) work (rust-lang/wg-traits#16). This PR makes the `TyS::kind` field private and adds a `kind()` method to access it. As noted [on Zulip](https://rust-lang.zulipchat.com/#narrow/stream/144729-wg-traits/topic/Looking.20to.20contribute/near/205185412), this refractoring might require a MCP. I am perfectly fine with having to wait until MCP is accepted and resolving the conflicts that pop up afterwards. r? @nikomatsakis
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/debuginfo')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs b/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs index fb8f5a62989..54e5d4d00f6 100644 --- a/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs +++ b/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs @@ -33,7 +33,7 @@ pub fn push_debuginfo_type_name<'tcx>( // .natvis visualizers (and perhaps other existing native debuggers?) let cpp_like_names = tcx.sess.target.target.options.is_like_msvc; - match t.kind { + match *t.kind() { ty::Bool => output.push_str("bool"), ty::Char => output.push_str("char"), ty::Str => output.push_str("str"), |
