Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit f51c119

Browse files
authored
Unrolled build for rust-lang#123498
Rollup merge of rust-lang#123498 - bvanjoi:docs, r=cjgillot explaining `DefKind::Field`
2 parents 8d490e3 + 889e571 commit f51c119

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler/rustc_hir/src/def.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ pub enum DefKind {
113113
InlineConst,
114114
/// Opaque type, aka `impl Trait`.
115115
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) }`
116119
Field,
117120
/// Lifetime parameter: the `'a` in `struct Foo<'a> { ... }`
118121
LifetimeParam,

0 commit comments

Comments
 (0)