Skip to content

Commit

Permalink
Fix test result.
Browse files Browse the repository at this point in the history
  • Loading branch information
xiongmao86 committed Jan 26, 2020
1 parent 7399580 commit 3d3144d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 22 deletions.
2 changes: 1 addition & 1 deletion tests/ui/single_component_path_imports.fixed
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// compile-flags: --edition 2018
#![warn(clippy::single_component_path_imports)]

use regex;


fn main() {
regex::Regex::new(r"^\d{4}-\d{2}-\d{2}$").unwrap();
Expand Down
26 changes: 5 additions & 21 deletions tests/ui/single_component_path_imports.stderr
Original file line number Diff line number Diff line change
@@ -1,26 +1,10 @@
error[E0465]: multiple rlib candidates for `regex` found
--> $DIR/single_component_path_imports.rs:5:5
error: this import is redundant
--> $DIR/single_component_path_imports.rs:5:1
|
LL | use regex;
| ^^^^^
| ^^^^^^^^^^ help: remove it entirely
|
note: candidate #1: /home/rui/rust-clippy/target/debug/deps/libregex-eb8182d3b38305f5.rlib
--> $DIR/single_component_path_imports.rs:5:5
|
LL | use regex;
| ^^^^^
note: candidate #2: /home/rui/rust-clippy/target/debug/deps/libregex-ecf6ddab71485867.rlib
--> $DIR/single_component_path_imports.rs:5:5
|
LL | use regex;
| ^^^^^

error[E0463]: can't find crate for `regex`
--> $DIR/single_component_path_imports.rs:5:5
|
LL | use regex;
| ^^^^^ can't find crate
= note: `-D clippy::single-component-path-imports` implied by `-D warnings`

error: aborting due to 2 previous errors
error: aborting due to previous error

For more information about this error, try `rustc --explain E0463`.

0 comments on commit 3d3144d

Please sign in to comment.