diff options
| author | Michael Goulet <michael@errs.io> | 2024-10-02 22:21:37 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-10-02 22:48:26 -0400 |
| commit | 7cd466a03606313dad4fa22fd5cf444204138fc8 (patch) | |
| tree | 8270c6fe4ce68514de3e85960007ad8aa3f5ec1f /compiler/rustc_middle | |
| parent | cb7e3695e8e7ea04377f60977b65ba324273b63d (diff) | |
| download | rust-7cd466a03606313dad4fa22fd5cf444204138fc8.tar.gz rust-7cd466a03606313dad4fa22fd5cf444204138fc8.zip | |
Move in_trait into OpaqueTyOrigin
Diffstat (limited to 'compiler/rustc_middle')
| -rw-r--r-- | compiler/rustc_middle/src/hir/map/mod.rs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/compiler/rustc_middle/src/hir/map/mod.rs b/compiler/rustc_middle/src/hir/map/mod.rs index e11361a615f..72e6c96e6f6 100644 --- a/compiler/rustc_middle/src/hir/map/mod.rs +++ b/compiler/rustc_middle/src/hir/map/mod.rs @@ -1139,13 +1139,7 @@ fn hir_id_to_string(map: Map<'_>, id: HirId) -> String { ItemKind::ForeignMod { .. } => "foreign mod", ItemKind::GlobalAsm(..) => "global asm", ItemKind::TyAlias(..) => "ty", - ItemKind::OpaqueTy(opaque) => { - if opaque.in_trait { - "opaque type in trait" - } else { - "opaque type" - } - } + ItemKind::OpaqueTy(..) => "opaque type", ItemKind::Enum(..) => "enum", ItemKind::Struct(..) => "struct", ItemKind::Union(..) => "union", |
