Skip to content

Commit fd45ee4

Browse files
committed
---
yaml --- r: 272357 b: refs/heads/auto c: 728d20f h: refs/heads/master i: 272355: a3ae18e
1 parent 7fe8978 commit fd45ee4

22 files changed

+26
-26
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
88
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
99
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1010
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
11-
refs/heads/auto: 8a461d940cc6019bd332b1ea732d79d3216d9108
11+
refs/heads/auto: 728d20f7cc84a67ea85aaa1257234b4750bdcc1c
1212
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1313
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336
1414
refs/tags/0.2: 1754d02027f2924bed83b0160ee340c7f41d5ea1

branches/auto/src/doc/book/closures.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,13 +371,13 @@ assert_eq!(6, answer);
371371
This gives us these long, related errors:
372372

373373
```text
374-
error: the predicate `core::ops::Fn(i32) -> i32 : core::marker::Sized` is not satisfied [E0277]
374+
error: the trait bound `core::ops::Fn(i32) -> i32 : core::marker::Sized` is not satisfied [E0277]
375375
fn factory() -> (Fn(i32) -> i32) {
376376
^~~~~~~~~~~~~~~~
377377
note: `core::ops::Fn(i32) -> i32` does not have a constant size known at compile-time
378378
fn factory() -> (Fn(i32) -> i32) {
379379
^~~~~~~~~~~~~~~~
380-
error: the predicate `core::ops::Fn(i32) -> i32 : core::marker::Sized` is not satisfied [E0277]
380+
error: the trait bound `core::ops::Fn(i32) -> i32 : core::marker::Sized` is not satisfied [E0277]
381381
let f = factory();
382382
^
383383
note: `core::ops::Fn(i32) -> i32` does not have a constant size known at compile-time

branches/auto/src/doc/book/concurrency.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ fn main() {
231231
This won't work, however, and will give us the error:
232232

233233
```text
234-
13:9: 13:22 error: the predicate `alloc::rc::Rc<collections::vec::Vec<i32>> : core::marker::Send`
234+
13:9: 13:22 error: the trait bound `alloc::rc::Rc<collections::vec::Vec<i32>> : core::marker::Send`
235235
is not satisfied
236236
...
237237
13:9: 13:22 note: `alloc::rc::Rc<collections::vec::Vec<i32>>`

branches/auto/src/doc/book/traits.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ print_area(5);
154154
We get a compile-time error:
155155

156156
```text
157-
error: the predicate `_ : HasArea` is not satisfied [E0277]
157+
error: the trait bound `_ : HasArea` is not satisfied [E0277]
158158
```
159159

160160
## Trait bounds on generic structs
@@ -496,7 +496,7 @@ impl FooBar for Baz {
496496
If we forget to implement `Foo`, Rust will tell us:
497497

498498
```text
499-
error: the predicate `main::Baz : main::Foo` is not satisfied [E0277]
499+
error: the trait bound `main::Baz : main::Foo` is not satisfied [E0277]
500500
```
501501

502502
# Deriving

branches/auto/src/doc/book/vectors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ v[j];
5656
Indexing with a non-`usize` type gives an error that looks like this:
5757

5858
```text
59-
error: the predicate `collections::vec::Vec<_> : core::ops::Index<i32>`
59+
error: the trait bound `collections::vec::Vec<_> : core::ops::Index<i32>`
6060
is not satisfied [E0277]
6161
v[j];
6262
^~~~

branches/auto/src/doc/nomicon/coercions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ fn main() {
6464
```
6565

6666
```text
67-
<anon>:10:5: 10:8 error: the predicate `&mut i32 : Trait` is not satisfied [E0277]
67+
<anon>:10:5: 10:8 error: the trait bound `&mut i32 : Trait` is not satisfied [E0277]
6868
<anon>:10 foo(t);
6969
^~~
7070
```

branches/auto/src/librustc/diagnostics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1006,7 +1006,7 @@ fn some_func<T: Foo>(foo: T) {
10061006
fn main() {
10071007
// we now call the method with the i32 type, which doesn't implement
10081008
// the Foo trait
1009-
some_func(5i32); // error: the predicate `i32 : Foo` is not satisfied
1009+
some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied
10101010
}
10111011
```
10121012

branches/auto/src/librustc/traits/error_reporting.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ pub fn report_selection_error<'a, 'tcx>(infcx: &InferCtxt<'a, 'tcx>,
361361
let trait_ref = trait_predicate.to_poly_trait_ref();
362362
let mut err = struct_span_err!(
363363
infcx.tcx.sess, obligation.cause.span, E0277,
364-
"the predicate `{}` is not satisfied",
364+
"the trait bound `{}` is not satisfied",
365365
trait_ref.to_predicate());
366366

367367
// Try to report a good error message.

branches/auto/src/test/compile-fail/associated-types-for-unimpl-trait.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ trait Get {
1515

1616
trait Other {
1717
fn uhoh<U:Get>(&self, foo: U, bar: <Self as Get>::Value) {}
18-
//~^ ERROR the predicate `Self : Get` is not satisfied
18+
//~^ ERROR the trait bound `Self : Get` is not satisfied
1919
}
2020

2121
fn main() {

branches/auto/src/test/compile-fail/associated-types-invalid-trait-ref-issue-18865.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ trait Foo<T> {
1818

1919
fn f<T:Foo<isize>>(t: &T) {
2020
let u: <T as Foo<usize>>::Bar = t.get_bar();
21-
//~^ ERROR the predicate `T : Foo<usize>` is not satisfied
21+
//~^ ERROR the trait bound `T : Foo<usize>` is not satisfied
2222
}
2323

2424
fn main() { }

0 commit comments

Comments
 (0)