@@ -226,7 +226,7 @@ impl AstConv<'tcx> for ItemCtxt<'tcx> {
226226 if let Some ( trait_ref) = poly_trait_ref. no_bound_vars ( ) {
227227 self . tcx ( ) . mk_projection ( item_def_id, trait_ref. substs )
228228 } 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.
230230 span_err ! (
231231 self . tcx( ) . sess,
232232 span,
@@ -239,17 +239,16 @@ impl AstConv<'tcx> for ItemCtxt<'tcx> {
239239 }
240240
241241 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.
244243 ty
245244 }
246245
247246 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.
249248 }
250249
251250 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?
253252 }
254253}
255254
@@ -260,8 +259,8 @@ fn type_param_predicates(
260259 use rustc:: hir:: * ;
261260
262261 // 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`.
265264
266265 let param_id = tcx. hir ( ) . as_local_hir_id ( def_id) . unwrap ( ) ;
267266 let param_owner = tcx. hir ( ) . ty_param_owner ( param_id) ;
@@ -334,7 +333,7 @@ fn type_param_predicates(
334333impl ItemCtxt < ' tcx > {
335334 /// Finds bounds from `hir::Generics`. This requires scanning through the
336335 /// 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
338337 /// bounds for a type parameter `X` if `X::Foo` is used.
339338 fn type_parameter_bounds_in_generics (
340339 & self ,
@@ -2292,7 +2291,7 @@ fn explicit_predicates_of(
22922291/// Converts a specific `GenericBound` from the AST into a set of
22932292/// predicates that apply to the self type. A vector is returned
22942293/// 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`
22962295/// and `<T as Bar>::X == i32`).
22972296fn predicates_from_bound < ' tcx > (
22982297 astconv : & dyn AstConv < ' tcx > ,
0 commit comments