Skip to content

Commit

Permalink
Rollup merge of #123498 - bvanjoi:docs, r=cjgillot
Browse files Browse the repository at this point in the history
explaining `DefKind::Field`
  • Loading branch information
matthiaskrgr committed Apr 6, 2024
2 parents 84569f9 + 889e571 commit 7988adf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions compiler/rustc_hir/src/def.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ pub enum DefKind {
InlineConst,
/// Opaque type, aka `impl Trait`.
OpaqueTy,
/// A field in a struct, enum or union. e.g.
/// - `bar` in `struct Foo { bar: u8 }`
/// - `Foo::Bar::0` in `enum Foo { Bar(u8) }`
Field,
/// Lifetime parameter: the `'a` in `struct Foo<'a> { ... }`
LifetimeParam,
Expand Down

0 comments on commit 7988adf

Please sign in to comment.