summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2018-02-06 16:28:25 +0100
committerRalf Jung <post@ralfj.de>2018-02-06 16:28:25 +0100
commitac183f83df4bf43bc5d8c5e5f2c5d4297a0b3755 (patch)
treefb12da0f9213cc23ed18799f72062b649dbc2d4f /src
parent2aae22746e70eea96b0959f6e7b603576e14f3bb (diff)
downloadrust-ac183f83df4bf43bc5d8c5e5f2c5d4297a0b3755.tar.gz
improve wording: bounds -> generic bounds
Diffstat (limited to 'src')
-rw-r--r--src/librustc_typeck/collect.rs2
-rw-r--r--src/test/ui/param-bounds-ignored.stderr6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/librustc_typeck/collect.rs b/src/librustc_typeck/collect.rs
index ecef168dcad..d5328a18c22 100644
--- a/src/librustc_typeck/collect.rs
+++ b/src/librustc_typeck/collect.rs
@@ -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);
}
}
diff --git a/src/test/ui/param-bounds-ignored.stderr b/src/test/ui/param-bounds-ignored.stderr
index a14d416aaa7..19aa9c5d6e5 100644
--- a/src/test/ui/param-bounds-ignored.stderr
+++ b/src/test/ui/param-bounds-ignored.stderr
@@ -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>;