@@ -88,6 +88,8 @@ impl BoundRegionKind {
88
88
}
89
89
}
90
90
91
+ /// Defines the kinds of types.
92
+ ///
91
93
/// N.B., if you change this, you'll probably want to change the corresponding
92
94
/// AST structure in `librustc_ast/ast.rs` as well.
93
95
#[ derive( Clone , PartialEq , Eq , PartialOrd , Ord , Hash , TyEncodable , TyDecodable , Debug ) ]
@@ -110,7 +112,7 @@ pub enum TyKind<'tcx> {
110
112
/// A primitive floating-point type. For example, `f64`.
111
113
Float ( ast:: FloatTy ) ,
112
114
113
- /// Structures , enumerations and unions.
115
+ /// Algebraic data types (ADT). For example: structures , enumerations and unions.
114
116
///
115
117
/// InternalSubsts here, possibly against intuition, *may* contain `Param`s.
116
118
/// That is, even after substitution it is possible that there are type
@@ -170,11 +172,11 @@ pub enum TyKind<'tcx> {
170
172
/// `|a| yield a`.
171
173
Generator ( DefId , SubstsRef < ' tcx > , hir:: Movability ) ,
172
174
173
- /// A type representin the types stored inside a generator.
175
+ /// A type representing the types stored inside a generator.
174
176
/// This should only appear in GeneratorInteriors.
175
177
GeneratorWitness ( Binder < & ' tcx List < Ty < ' tcx > > > ) ,
176
178
177
- /// The never type `!`
179
+ /// The never type `!`.
178
180
Never ,
179
181
180
182
/// A tuple type. For example, `(i32, bool)`.
0 commit comments