Skip to content

Commit e6ac4f5

Browse files
authored
Unrolled build for rust-lang#123998
Rollup merge of rust-lang#123998 - compiler-errors:opaque-ns, r=davidtwco Opaque types have no namespace Opaques are never referenced by name -- even when we have `type X = impl Sized;`, `X` is the name of the type alias, not the opaque.
2 parents 4e1f5d9 + 8d07d90 commit e6ac4f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_hir/src/def.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,6 @@ impl DefKind {
207207
| DefKind::Enum
208208
| DefKind::Variant
209209
| DefKind::Trait
210-
| DefKind::OpaqueTy
211210
| DefKind::TyAlias
212211
| DefKind::ForeignTy
213212
| DefKind::TraitAlias
@@ -234,7 +233,8 @@ impl DefKind {
234233
| DefKind::Use
235234
| DefKind::ForeignMod
236235
| DefKind::GlobalAsm
237-
| DefKind::Impl { .. } => None,
236+
| DefKind::Impl { .. }
237+
| DefKind::OpaqueTy => None,
238238
}
239239
}
240240

0 commit comments

Comments
 (0)