Skip to content

Commit ac183f8

Browse files
committed
improve wording: bounds -> generic bounds
1 parent 2aae227 commit ac183f8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/librustc_typeck/collect.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ fn ensure_no_param_bounds(tcx: TyCtxt,
383383
// part of this PR. Still, convert to warning to
384384
// make bootstrapping easier.
385385
span_warn!(tcx.sess, span, E0122,
386-
"bounds are ignored in {}",
386+
"generic bounds are ignored in {}",
387387
thing);
388388
}
389389
}

src/test/ui/param-bounds-ignored.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
warning[E0122]: bounds are ignored in type aliases
1+
warning[E0122]: generic bounds are ignored in type aliases
22
--> $DIR/param-bounds-ignored.rs:15:1
33
|
44
15 | type SVec<T: Send> = Vec<T>;
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66

7-
warning[E0122]: bounds are ignored in type aliases
7+
warning[E0122]: generic bounds are ignored in type aliases
88
--> $DIR/param-bounds-ignored.rs:16:1
99
|
1010
16 | type VVec<'b, 'a: 'b> = Vec<&'a i32>;
1111
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1212

13-
warning[E0122]: bounds are ignored in type aliases
13+
warning[E0122]: generic bounds are ignored in type aliases
1414
--> $DIR/param-bounds-ignored.rs:17:1
1515
|
1616
17 | type WVec<'b, T: 'b> = Vec<T>;

0 commit comments

Comments
 (0)