Skip to content

Commit f659fcc

Browse files
committed
Docment rustc_middle::ty::AssocItemContainer and rustc_middle::ty::AssocKind.
1 parent 44bee0a commit f659fcc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/rustc_middle/src/ty/assoc.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ use rustc_span::{Ident, Symbol, sym};
88
use super::{TyCtxt, Visibility};
99
use crate::ty;
1010

11+
/// Indicates whether an associated item is defined in a trait or an impl block.
1112
#[derive(Clone, Copy, PartialEq, Eq, Debug, HashStable, Hash, Encodable, Decodable)]
1213
pub enum AssocItemContainer {
1314
Trait,
@@ -128,6 +129,7 @@ impl AssocItem {
128129
}
129130
}
130131

132+
/// Represents the kind of an associated item.
131133
#[derive(Copy, Clone, PartialEq, Debug, HashStable, Eq, Hash, Encodable, Decodable)]
132134
pub enum AssocKind {
133135
Const,

0 commit comments

Comments
 (0)