We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b1ab8d5 + cddf291 commit 9436304Copy full SHA for 9436304
compiler/rustc_hir/src/hir.rs
@@ -2345,7 +2345,9 @@ impl ImplItemId {
2345
}
2346
2347
2348
-/// Represents anything within an `impl` block.
+/// Represents an associated item within an impl block.
2349
+///
2350
+/// Refer to [`Impl`] for an impl block declaration.
2351
#[derive(Debug, Clone, Copy, HashStable_Generic)]
2352
pub struct ImplItem<'hir> {
2353
pub ident: Ident,
@@ -3327,6 +3329,10 @@ pub enum ItemKind<'hir> {
3327
3329
Impl(&'hir Impl<'hir>),
3328
3330
3331
3332
+/// Represents an impl block declaration.
3333
3334
+/// E.g., `impl $Type { .. }` or `impl $Trait for $Type { .. }`
3335
+/// Refer to [`ImplItem`] for an associated item within an impl block.
3336
3337
pub struct Impl<'hir> {
3338
pub safety: Safety,
0 commit comments