Test fixes from the rollup
This commit is contained in:
parent
672d599806
commit
1f342a68cc
@ -13,5 +13,6 @@
|
||||
|
||||
trait C {}
|
||||
impl C { fn f() {} } //~ ERROR duplicate definitions with name `f`
|
||||
//~^ WARN: this was previously accepted
|
||||
impl C { fn f() {} }
|
||||
fn main() { }
|
||||
|
@ -28,6 +28,7 @@ struct Foo<T> { data: Vec<T> }
|
||||
impl<T> Drop for Foo<T> {
|
||||
#[unsafe_destructor_blind_to_params] // This is the UGEH attribute
|
||||
//~^ ERROR unsafe_destructor_blind_to_params has been replaced
|
||||
//~^^ WARN: use of deprecated attribute
|
||||
fn drop(&mut self) { }
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
error[E0276]: impl has stricter requirements than trait
|
||||
error[E0276]: impl has stricter requirements than trait, #[deny(extra_requirement_in_impl)] on by default
|
||||
--> $DIR/proj-outlives-region.rs:22:5
|
||||
|
|
||||
17 | fn foo() where T: 'a;
|
||||
@ -9,11 +9,6 @@ error[E0276]: impl has stricter requirements than trait
|
||||
|
|
||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
||||
= note: for more information, see issue #37166 <https://github.com/rust-lang/rust/issues/37166>
|
||||
note: lint level defined here
|
||||
--> $DIR/proj-outlives-region.rs:12:9
|
||||
|
|
||||
12 | #![deny(extra_requirement_in_impl)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
error[E0276]: impl has stricter requirements than trait
|
||||
error[E0276]: impl has stricter requirements than trait, #[deny(extra_requirement_in_impl)] on by default
|
||||
--> $DIR/region-unrelated.rs:22:5
|
||||
|
|
||||
17 | fn foo() where T: 'a;
|
||||
@ -9,11 +9,6 @@ error[E0276]: impl has stricter requirements than trait
|
||||
|
|
||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
||||
= note: for more information, see issue #37166 <https://github.com/rust-lang/rust/issues/37166>
|
||||
note: lint level defined here
|
||||
--> $DIR/region-unrelated.rs:12:9
|
||||
|
|
||||
12 | #![deny(extra_requirement_in_impl)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user