improve wording: bounds -> generic bounds

This commit is contained in:
Ralf Jung 2018-02-06 16:28:25 +01:00
parent 2aae22746e
commit ac183f83df
2 changed files with 4 additions and 4 deletions

View file

@ -383,7 +383,7 @@ fn ensure_no_param_bounds(tcx: TyCtxt,
// part of this PR. Still, convert to warning to // part of this PR. Still, convert to warning to
// make bootstrapping easier. // make bootstrapping easier.
span_warn!(tcx.sess, span, E0122, span_warn!(tcx.sess, span, E0122,
"bounds are ignored in {}", "generic bounds are ignored in {}",
thing); thing);
} }
} }

View file

@ -1,16 +1,16 @@
warning[E0122]: bounds are ignored in type aliases warning[E0122]: generic bounds are ignored in type aliases
--> $DIR/param-bounds-ignored.rs:15:1 --> $DIR/param-bounds-ignored.rs:15:1
| |
15 | type SVec<T: Send> = Vec<T>; 15 | type SVec<T: Send> = Vec<T>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning[E0122]: bounds are ignored in type aliases warning[E0122]: generic bounds are ignored in type aliases
--> $DIR/param-bounds-ignored.rs:16:1 --> $DIR/param-bounds-ignored.rs:16:1
| |
16 | type VVec<'b, 'a: 'b> = Vec<&'a i32>; 16 | type VVec<'b, 'a: 'b> = Vec<&'a i32>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning[E0122]: bounds are ignored in type aliases warning[E0122]: generic bounds are ignored in type aliases
--> $DIR/param-bounds-ignored.rs:17:1 --> $DIR/param-bounds-ignored.rs:17:1
| |
17 | type WVec<'b, T: 'b> = Vec<T>; 17 | type WVec<'b, T: 'b> = Vec<T>;