Update failing ui tests

This commit is contained in:
Guillaume Gomez 2023-03-12 15:23:32 +01:00
parent ac4ea52980
commit 7b0fa085b0
6 changed files with 45 additions and 5 deletions

View File

@ -1,5 +1,5 @@
// run-rustfix
#![allow(unused, nonstandard_style)]
#![allow(unused, nonstandard_style, useless_anonymous_reexport)]
mod m {
mod p {

View File

@ -1,5 +1,5 @@
// run-rustfix
#![allow(unused, nonstandard_style)]
#![allow(unused, nonstandard_style, useless_anonymous_reexport)]
mod m {
mod p {

View File

@ -1,5 +1,5 @@
// run-rustfix
#![allow(unused, nonstandard_style)]
#![allow(unused, nonstandard_style, useless_anonymous_reexport)]
mod m {
#[macro_export]
macro_rules! nu {

View File

@ -1,5 +1,5 @@
// run-rustfix
#![allow(unused, nonstandard_style)]
#![allow(unused, nonstandard_style, useless_anonymous_reexport)]
mod m {
#[macro_export]
macro_rules! nu {

View File

@ -12,5 +12,10 @@ pub use self::my_mod::Foo as _;
pub use self::my_mod::TyFoo as _;
pub use self::my_mod::Bar as _; //~ ERROR
pub use self::my_mod::TyBar as _; //~ ERROR
pub use self::my_mod::{Bar as _}; //~ ERROR
pub use self::my_mod::{Bar as _, Foo as _}; //~ ERROR
pub use self::my_mod::{Bar as _, TyBar as _};
//~^ ERROR
//~| ERROR
#[allow(unused_imports)]
use self::my_mod::TyBar as _;

View File

@ -4,6 +4,7 @@ error: useless anonymous re-export
LL | pub use self::my_mod::Bar as _;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: only anonymous re-exports of traits are useful, this is a `struct`
note: the lint level is defined here
--> $DIR/anonymous-reexport.rs:1:9
|
@ -15,6 +16,40 @@ error: useless anonymous re-export
|
LL | pub use self::my_mod::TyBar as _;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: only anonymous re-exports of traits are useful, this is a `type alias`
error: aborting due to 2 previous errors
error: useless anonymous re-export
--> $DIR/anonymous-reexport.rs:15:24
|
LL | pub use self::my_mod::{Bar as _};
| ^^^^^^^^
|
= note: only anonymous re-exports of traits are useful, this is a `struct`
error: useless anonymous re-export
--> $DIR/anonymous-reexport.rs:16:24
|
LL | pub use self::my_mod::{Bar as _, Foo as _};
| ^^^^^^^^
|
= note: only anonymous re-exports of traits are useful, this is a `struct`
error: useless anonymous re-export
--> $DIR/anonymous-reexport.rs:17:24
|
LL | pub use self::my_mod::{Bar as _, TyBar as _};
| ^^^^^^^^
|
= note: only anonymous re-exports of traits are useful, this is a `struct`
error: useless anonymous re-export
--> $DIR/anonymous-reexport.rs:17:34
|
LL | pub use self::my_mod::{Bar as _, TyBar as _};
| ^^^^^^^^^^
|
= note: only anonymous re-exports of traits are useful, this is a `type alias`
error: aborting due to 6 previous errors