Skip to content

Commit 04fb8b9

Browse files
committed
Add // run-rustfix
1 parent f55a740 commit 04fb8b9

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// run-rustfix
2+
#![warn(clippy::wildcard_imports)]
3+
#![allow(unused, clippy::unnecessary_wraps, clippy::let_unit_value)]
4+
5+
// Test for #10580, the lint should **not** ignore it.
6+
7+
fn foofoo() {}
8+
9+
mod outer {
10+
mod inner {
11+
use super::super::foofoo;
12+
fn barbar() {
13+
let _ = foofoo();
14+
}
15+
}
16+
}
17+
18+
fn main() {}

tests/ui/wildcard_imports/another_file.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-rustfix
12
#![warn(clippy::wildcard_imports)]
23
#![allow(unused, clippy::unnecessary_wraps, clippy::let_unit_value)]
34

tests/ui/wildcard_imports/another_file.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: usage of wildcard import
2-
--> $DIR/another_file.rs:10:13
2+
--> $DIR/another_file.rs:11:13
33
|
44
LL | use super::super::*;
55
| ^^^^^^^^^^^^^^^ help: try: `super::super::foofoo`

0 commit comments

Comments
 (0)