Skip to content

Commit

Permalink
bless for clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
bvanjoi committed Oct 12, 2023
1 parent 541e2f9 commit 66c5ca9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/tools/clippy/tests/ui/enum_glob_use.fixed
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ mod in_fn_test {
}

mod blurg {
pub use std::cmp::Ordering::*; // ok, re-export
// ok, re-export
}

fn main() {
Expand Down
11 changes: 10 additions & 1 deletion src/tools/clippy/tests/ui/enum_glob_use.stderr
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
error: unused import: `std::cmp::Ordering::*`
--> $DIR/enum_glob_use.rs:22:13
|
LL | pub use std::cmp::Ordering::*; // ok, re-export
| ^^^^^^^^^^^^^^^^^^^^^
|
= note: `-D unused-imports` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unused_imports)]`

error: usage of wildcard import for enum variants
--> $DIR/enum_glob_use.rs:5:5
|
Expand All @@ -19,5 +28,5 @@ error: usage of wildcard import for enum variants
LL | use crate::Enum::*;
| ^^^^^^^^^^^^^^ help: try: `crate::Enum::Foo`

error: aborting due to 3 previous errors
error: aborting due to 4 previous errors

0 comments on commit 66c5ca9

Please sign in to comment.