@@ -226,7 +226,7 @@ impl AstConv<'tcx> for ItemCtxt<'tcx> {
226
226
if let Some ( trait_ref) = poly_trait_ref. no_bound_vars ( ) {
227
227
self . tcx ( ) . mk_projection ( item_def_id, trait_ref. substs )
228
228
} else {
229
- // no late-bound regions, we can just ignore the binder
229
+ // There are no late-bound regions; we can just ignore the binder.
230
230
span_err ! (
231
231
self . tcx( ) . sess,
232
232
span,
@@ -239,17 +239,16 @@ impl AstConv<'tcx> for ItemCtxt<'tcx> {
239
239
}
240
240
241
241
fn normalize_ty ( & self , _span : Span , ty : Ty < ' tcx > ) -> Ty < ' tcx > {
242
- // types in item signatures are not normalized, to avoid undue
243
- // dependencies.
242
+ // Types in item signatures are not normalized to avoid undue dependencies.
244
243
ty
245
244
}
246
245
247
246
fn set_tainted_by_errors ( & self ) {
248
- // no obvious place to track this, so just let it go
247
+ // There's no obvious place to track this, so just let it go.
249
248
}
250
249
251
250
fn record_ty ( & self , _hir_id : hir:: HirId , _ty : Ty < ' tcx > , _span : Span ) {
252
- // no place to record types from signatures?
251
+ // There's no place to record types from signatures?
253
252
}
254
253
}
255
254
@@ -260,8 +259,8 @@ fn type_param_predicates(
260
259
use rustc:: hir:: * ;
261
260
262
261
// In the AST, bounds can derive from two places. Either
263
- // written inline like `<T : Foo>` or in a where clause like
264
- // `where T : Foo`.
262
+ // written inline like `<T: Foo>` or in a where- clause like
263
+ // `where T: Foo`.
265
264
266
265
let param_id = tcx. hir ( ) . as_local_hir_id ( def_id) . unwrap ( ) ;
267
266
let param_owner = tcx. hir ( ) . ty_param_owner ( param_id) ;
@@ -334,7 +333,7 @@ fn type_param_predicates(
334
333
impl ItemCtxt < ' tcx > {
335
334
/// Finds bounds from `hir::Generics`. This requires scanning through the
336
335
/// AST. We do this to avoid having to convert *all* the bounds, which
337
- /// would create artificial cycles. Instead we can only convert the
336
+ /// would create artificial cycles. Instead, we can only convert the
338
337
/// bounds for a type parameter `X` if `X::Foo` is used.
339
338
fn type_parameter_bounds_in_generics (
340
339
& self ,
@@ -2292,7 +2291,7 @@ fn explicit_predicates_of(
2292
2291
/// Converts a specific `GenericBound` from the AST into a set of
2293
2292
/// predicates that apply to the self type. A vector is returned
2294
2293
/// because this can be anywhere from zero predicates (`T: ?Sized` adds no
2295
- /// predicates) to one (`T: Foo`) to many (`T: Bar<X= i32>` adds `T: Bar`
2294
+ /// predicates) to one (`T: Foo`) to many (`T: Bar<X = i32>` adds `T: Bar`
2296
2295
/// and `<T as Bar>::X == i32`).
2297
2296
fn predicates_from_bound < ' tcx > (
2298
2297
astconv : & dyn AstConv < ' tcx > ,
0 commit comments