mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
tests/ui: remove workaround for broken revisioned run-rustfix test
This commit is contained in:
parent
5dc276c0da
commit
de3857e553
@ -2,8 +2,6 @@
|
||||
//@[old] edition:2015
|
||||
//@[new] edition:2021
|
||||
//@[new] run-rustfix
|
||||
// FIXME: the test suite tries to create a crate called `bare_trait_dont_suggest_dyn.new`
|
||||
#![crate_name="bare_trait_dont_suggest_dyn"]
|
||||
#![deny(bare_trait_objects)]
|
||||
fn ord_prefer_dot(s: String) -> impl Ord {
|
||||
//~^ ERROR the trait `Ord` cannot be made into an object
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0038]: the trait `Ord` cannot be made into an object
|
||||
--> $DIR/bare-trait-dont-suggest-dyn.rs:8:33
|
||||
--> $DIR/bare-trait-dont-suggest-dyn.rs:6:33
|
||||
|
|
||||
LL | fn ord_prefer_dot(s: String) -> Ord {
|
||||
| ^^^ `Ord` cannot be made into an object
|
||||
|
@ -1,5 +1,5 @@
|
||||
error: trait objects without an explicit `dyn` are deprecated
|
||||
--> $DIR/bare-trait-dont-suggest-dyn.rs:8:33
|
||||
--> $DIR/bare-trait-dont-suggest-dyn.rs:6:33
|
||||
|
|
||||
LL | fn ord_prefer_dot(s: String) -> Ord {
|
||||
| ^^^
|
||||
@ -7,7 +7,7 @@ LL | fn ord_prefer_dot(s: String) -> Ord {
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
|
||||
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
|
||||
note: the lint level is defined here
|
||||
--> $DIR/bare-trait-dont-suggest-dyn.rs:7:9
|
||||
--> $DIR/bare-trait-dont-suggest-dyn.rs:5:9
|
||||
|
|
||||
LL | #![deny(bare_trait_objects)]
|
||||
| ^^^^^^^^^^^^^^^^^^
|
||||
@ -17,7 +17,7 @@ LL | fn ord_prefer_dot(s: String) -> dyn Ord {
|
||||
| +++
|
||||
|
||||
error[E0038]: the trait `Ord` cannot be made into an object
|
||||
--> $DIR/bare-trait-dont-suggest-dyn.rs:8:33
|
||||
--> $DIR/bare-trait-dont-suggest-dyn.rs:6:33
|
||||
|
|
||||
LL | fn ord_prefer_dot(s: String) -> Ord {
|
||||
| ^^^ `Ord` cannot be made into an object
|
||||
|
@ -2,8 +2,6 @@
|
||||
//@[old] edition:2015
|
||||
//@[new] edition:2021
|
||||
//@[new] run-rustfix
|
||||
// FIXME: the test suite tries to create a crate called `bare_trait_dont_suggest_dyn.new`
|
||||
#![crate_name="bare_trait_dont_suggest_dyn"]
|
||||
#![deny(bare_trait_objects)]
|
||||
fn ord_prefer_dot(s: String) -> Ord {
|
||||
//~^ ERROR the trait `Ord` cannot be made into an object
|
||||
|
Loading…
Reference in New Issue
Block a user