Skip to content

Commit 88fe53a

Browse files
committed
---
yaml --- r: 228485 b: refs/heads/try c: 7d984ef h: refs/heads/master i: 228483: 138f4fe v: v3
1 parent 4e4cad4 commit 88fe53a

File tree

10 files changed

+34
-27
lines changed

10 files changed

+34
-27
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: aca2057ed5fb7af3f8905b2bc01f72fa001c35c8
33
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4-
refs/heads/try: 86fa65bcc5882be3e1d3826a07bd3a0db88a045a
4+
refs/heads/try: 7d984ef6df64de8d7882912ccae16d39ded59a21
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/src/libcollections/borrow.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ impl<'a, B: ?Sized> Clone for Cow<'a, B> where B: ToOwned {
215215
impl<'a, B: ?Sized> Cow<'a, B> where B: ToOwned {
216216
/// Acquires a mutable reference to the owned form of the data.
217217
///
218-
/// Clones the data if it is not already owned.
218+
/// Copies the data if it is not already owned.
219219
///
220220
/// # Examples
221221
///
@@ -241,7 +241,7 @@ impl<'a, B: ?Sized> Cow<'a, B> where B: ToOwned {
241241

242242
/// Extracts the owned data.
243243
///
244-
/// Clones the data if it is not already owned.
244+
/// Copies the data if it is not already owned.
245245
///
246246
/// # Examples
247247
///

branches/try/src/librustc/session/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,8 @@ fn split_msg_into_multilines(msg: &str) -> Option<String> {
301301
!msg.contains("if and else have incompatible types") &&
302302
!msg.contains("if may be missing an else clause") &&
303303
!msg.contains("match arms have incompatible types") &&
304-
!msg.contains("structure constructor specifies a structure of type") {
304+
!msg.contains("structure constructor specifies a structure of type") &&
305+
!msg.contains("has an incompatible type for trait") {
305306
return None
306307
}
307308
let first = msg.match_indices("expected").filter(|s| {

branches/try/src/test/compile-fail/associated-const-impl-wrong-type.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ struct SignedBar;
1818

1919
impl Foo for SignedBar {
2020
const BAR: i32 = -1;
21-
//~^ ERROR E0326
21+
//~^ ERROR implemented const `BAR` has an incompatible type for trait
22+
//~| expected u32,
23+
//~| found i32 [E0326]
2224
}
2325

2426
fn main() {}

branches/try/src/test/compile-fail/issue-15094.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ struct Debuger<T> {
1919
impl<T: fmt::Debug> ops::FnOnce<(),> for Debuger<T> {
2020
type Output = ();
2121
fn call_once(self, _args: ()) {
22-
//~^ ERROR `call_once` has an incompatible type for trait: expected "rust-call" fn, found "Rust" fn
22+
//~^ ERROR `call_once` has an incompatible type for trait
23+
//~| expected "rust-call" fn,
24+
//~| found "Rust" fn
2325
println!("{:?}", self.x);
2426
}
2527
}

branches/try/src/test/compile-fail/issue-20225.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,22 @@ struct Foo;
1414

1515
impl<'a, T> Fn<(&'a T,)> for Foo {
1616
extern "rust-call" fn call(&self, (_,): (T,)) {}
17-
//~^ ERROR: has an incompatible type for trait: expected &-ptr
17+
//~^ ERROR: has an incompatible type for trait
18+
//~| expected &-ptr
1819
}
1920

2021
impl<'a, T> FnMut<(&'a T,)> for Foo {
2122
extern "rust-call" fn call_mut(&mut self, (_,): (T,)) {}
22-
//~^ ERROR: has an incompatible type for trait: expected &-ptr
23+
//~^ ERROR: has an incompatible type for trait
24+
//~| expected &-ptr
2325
}
2426

2527
impl<'a, T> FnOnce<(&'a T,)> for Foo {
2628
type Output = ();
2729

2830
extern "rust-call" fn call_once(self, (_,): (T,)) {}
29-
//~^ ERROR: has an incompatible type for trait: expected &-ptr
31+
//~^ ERROR: has an incompatible type for trait
32+
//~| expected &-ptr
3033
}
3134

3235
fn main() {}

branches/try/src/test/run-pass/issue-14821.rs renamed to branches/try/src/test/compile-fail/issue-21332.rs

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,14 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
trait SomeTrait {}
12-
struct Meow;
13-
impl SomeTrait for Meow {}
11+
struct S;
1412

15-
struct Foo<'a> {
16-
x: &'a SomeTrait,
17-
y: &'a SomeTrait,
13+
impl Iterator for S {
14+
type Item = i32;
15+
fn next(&mut self) -> Result<i32, i32> { Ok(7) }
16+
//~^ ERROR method `next` has an incompatible type for trait
17+
//~| expected enum `core::option::Option`
18+
//~| found enum `core::result::Result` [E0053]
1819
}
1920

20-
impl<'a> Foo<'a> {
21-
pub fn new<'b>(x: &'b SomeTrait, y: &'b SomeTrait) -> Foo<'b> { Foo { x: x, y: y } }
22-
}
23-
24-
fn main() {
25-
let r = Meow;
26-
let s = Meow;
27-
let q = Foo::new(&r as &SomeTrait, &s as &SomeTrait);
28-
}
21+
fn main() {}

branches/try/src/test/compile-fail/issue-24356.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ fn main() {
3030
impl Deref for Thing {
3131
//~^ ERROR not all trait items implemented, missing: `Target` [E0046]
3232
fn deref(&self) -> i8 { self.0 }
33-
//~^ ERROR method `deref` has an incompatible type for trait: expected &-ptr, found i8 [E0053]
33+
//~^ ERROR method `deref` has an incompatible type for trait
34+
//~| expected &-ptr
35+
//~| found i8 [E0053]
3436
}
3537

3638
let thing = Thing(72);

branches/try/src/test/compile-fail/trait-impl-method-mismatch.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ trait Mumbo {
1616
impl Mumbo for usize {
1717
// Cannot have a larger effect than the trait:
1818
unsafe fn jumbo(&self, x: &usize) { *self + *x; }
19-
//~^ ERROR expected normal fn, found unsafe fn
19+
//~^ ERROR method `jumbo` has an incompatible type for trait
20+
//~| expected normal fn,
21+
//~| found unsafe fn
2022
}
2123

2224
fn main() {}

branches/try/src/test/compile-fail/unsafe-trait-impl.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ trait Foo {
1616

1717
impl Foo for u32 {
1818
fn len(&self) -> u32 { *self }
19-
//~^ ERROR incompatible type for trait: expected unsafe fn, found normal fn
19+
//~^ ERROR method `len` has an incompatible type for trait
20+
//~| expected unsafe fn,
21+
//~| found normal fn
2022
}
2123

2224
fn main() { }

0 commit comments

Comments
 (0)