@@ -428,10 +428,6 @@ pub enum TraitBoundModifier {
428
428
MaybeConst ,
429
429
}
430
430
431
- /// The AST represents all type param bounds as types.
432
- /// `typeck::collect::compute_bounds` matches these against
433
- /// the "special" built-in traits (see `middle::lang_items`) and
434
- /// detects `Copy`, `Send` and `Sync`.
435
431
#[ derive( Clone , Copy , Debug , HashStable_Generic ) ]
436
432
pub enum GenericBound < ' hir > {
437
433
Trait ( PolyTraitRef < ' hir > , TraitBoundModifier ) ,
@@ -1860,7 +1856,7 @@ pub enum ExprKind<'hir> {
1860
1856
/// Wraps the expression in a terminating scope.
1861
1857
/// This makes it semantically equivalent to `{ let _t = expr; _t }`.
1862
1858
///
1863
- /// This construct only exists to tweak the drop order in HIR lowering.
1859
+ /// This construct only exists to tweak the drop order in AST lowering.
1864
1860
/// An example of that is the desugaring of `for` loops.
1865
1861
DropTemps ( & ' hir Expr < ' hir > ) ,
1866
1862
/// A `let $pat = $expr` expression.
@@ -2293,7 +2289,7 @@ pub enum ImplItemKind<'hir> {
2293
2289
/// Bind a type to an associated type (i.e., `A = Foo`).
2294
2290
///
2295
2291
/// Bindings like `A: Debug` are represented as a special type `A =
2296
- /// $::Debug` that is understood by the astconv code.
2292
+ /// $::Debug` that is understood by the HIR ty lowering code.
2297
2293
///
2298
2294
/// FIXME(alexreg): why have a separate type for the binding case,
2299
2295
/// wouldn't it be better to make the `ty` field an enum like the
0 commit comments