Skip to content

Commit 3818ec5

Browse files
committed
---
yaml --- r: 223536 b: refs/heads/beta c: 18e9007 h: refs/heads/master v: v3
1 parent b4c500f commit 3818ec5

File tree

7 files changed

+9
-7
lines changed

7 files changed

+9
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
2323
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
2424
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26-
refs/heads/beta: 1e7a6b880c84176a11525e7be5b5a9b15f8143b1
26+
refs/heads/beta: 18e9007ac249c542aa3b73b5aa275e52825ca940
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
2828
refs/heads/tmp: 938f5d7af401e2d8238522fed4a612943b6e77fd
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/beta/src/test/compile-fail/issue-24446.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
fn main() {
1212
static foo: Fn() -> u32 = || -> u32 {
1313
//~^ ERROR: mismatched types:
14-
//~| expected `core::ops::Fn() -> u32`,
14+
//~| expected `core::ops::Fn() -> u32 + 'static`,
1515
//~| found closure
1616
//~| (expected trait core::ops::Fn,
1717
//~| found closure)

branches/beta/src/test/compile-fail/object-lifetime-default-elision.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ fn load0<'a>(ss: &'a Box<SomeTrait>) -> Box<SomeTrait> {
4141

4242
deref(ss)
4343
//~^ ERROR cannot infer
44+
//~| WARNING E0398
4445
}
4546

4647
fn load1(ss: &SomeTrait) -> &SomeTrait {

branches/beta/src/test/compile-fail/object-lifetime-default-mybox.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ fn deref<T>(ss: &T) -> T {
2828

2929
fn load0(ss: &MyBox<SomeTrait>) -> MyBox<SomeTrait> {
3030
deref(ss) //~ ERROR cannot infer
31+
//~^ WARNING E0398
3132
}
3233

3334
fn load1<'a,'b>(a: &'a MyBox<SomeTrait>,

branches/beta/src/test/compile-fail/object-lifetime-default.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
#![feature(rustc_attrs)]
1212

1313
#[rustc_object_lifetime_default]
14-
struct A<T>(T); //~ ERROR None
14+
struct A<T>(T); //~ ERROR BaseDefault
1515

1616
#[rustc_object_lifetime_default]
17-
struct B<'a,T>(&'a (), T); //~ ERROR None
17+
struct B<'a,T>(&'a (), T); //~ ERROR BaseDefault
1818

1919
#[rustc_object_lifetime_default]
2020
struct C<'a,T:'a>(&'a T); //~ ERROR 'a

branches/beta/src/test/compile-fail/trait-bounds-cant-coerce.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ fn c(x: Box<Foo+Sync+Send>) {
2222

2323
fn d(x: Box<Foo>) {
2424
a(x); //~ ERROR mismatched types
25-
//~| expected `Box<Foo + Send>`
26-
//~| found `Box<Foo>`
25+
//~| expected `Box<Foo + Send + 'static>`
26+
//~| found `Box<Foo + 'static>`
2727
//~| expected bounds `Send`
2828
//~| found no bounds
2929
}

branches/beta/src/test/run-pass/issue-21058.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ fn main() {
2626
std::intrinsics::type_name::<NT>(),
2727
// DST
2828
std::intrinsics::type_name::<DST>()
29-
)}, ("[u8]", "str", "core::marker::Copy", "NT", "DST"));
29+
)}, ("[u8]", "str", "core::marker::Copy + 'static", "NT", "DST"));
3030
}

0 commit comments

Comments
 (0)