mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-09 06:16:06 +00:00
improve wording: bounds -> generic bounds
This commit is contained in:
parent
2aae22746e
commit
ac183f83df
@ -383,7 +383,7 @@ fn ensure_no_param_bounds(tcx: TyCtxt,
|
||||
// part of this PR. Still, convert to warning to
|
||||
// make bootstrapping easier.
|
||||
span_warn!(tcx.sess, span, E0122,
|
||||
"bounds are ignored in {}",
|
||||
"generic bounds are ignored in {}",
|
||||
thing);
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
|
||||
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
|
||||
|
|
||||
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
|
||||
|
|
||||
17 | type WVec<'b, T: 'b> = Vec<T>;
|
||||
|
Loading…
Reference in New Issue
Block a user