-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
recover wrong-cased
use
s (Use
, USE
, etc)
- Loading branch information
1 parent
de341fe
commit 3694429
Showing
5 changed files
with
77 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// run-rustfix | ||
#![allow(unused_imports)] | ||
|
||
fn main() {} | ||
|
||
use std::ptr::read; //~ ERROR keyword `use` is written in a wrong case | ||
use std::ptr::write; //~ ERROR keyword `use` is written in a wrong case |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// run-rustfix | ||
#![allow(unused_imports)] | ||
|
||
fn main() {} | ||
|
||
Use std::ptr::read; //~ ERROR keyword `use` is written in a wrong case | ||
USE std::ptr::write; //~ ERROR keyword `use` is written in a wrong case |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
error: keyword `use` is written in a wrong case | ||
--> $DIR/item-kw-case-mismatch.rs:6:1 | ||
| | ||
LL | Use std::ptr::read; | ||
| ^^^ help: write it in the correct case (notice the capitalization): `use` | ||
|
||
error: keyword `use` is written in a wrong case | ||
--> $DIR/item-kw-case-mismatch.rs:7:1 | ||
| | ||
LL | USE std::ptr::write; | ||
| ^^^ help: write it in the correct case: `use` | ||
|
||
error: aborting due to 2 previous errors | ||
|