We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
DefKind::Field
1 parent 4563f70 commit 889e571Copy full SHA for 889e571
compiler/rustc_hir/src/def.rs
@@ -113,6 +113,9 @@ pub enum DefKind {
113
InlineConst,
114
/// Opaque type, aka `impl Trait`.
115
OpaqueTy,
116
+ /// A field in a struct, enum or union. e.g.
117
+ /// - `bar` in `struct Foo { bar: u8 }`
118
+ /// - `Foo::Bar::0` in `enum Foo { Bar(u8) }`
119
Field,
120
/// Lifetime parameter: the `'a` in `struct Foo<'a> { ... }`
121
LifetimeParam,
0 commit comments