-
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 keywords starting functions
- Loading branch information
1 parent
3694429
commit 38b0865
Showing
8 changed files
with
205 additions
and
51 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
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 |
---|---|---|
@@ -1,7 +1,34 @@ | ||
// run-rustfix | ||
// edition:2018 | ||
#![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 | ||
|
||
async fn _a() {} | ||
//~^ ERROR keyword `fn` is written in a wrong case | ||
|
||
fn _b() {} | ||
//~^ ERROR keyword `fn` is written in a wrong case | ||
|
||
async fn _c() {} | ||
//~^ ERROR keyword `async` is written in a wrong case | ||
//~| ERROR keyword `fn` is written in a wrong case | ||
|
||
async fn _d() {} | ||
//~^ ERROR keyword `async` is written in a wrong case | ||
|
||
const unsafe fn _e() {} | ||
//~^ ERROR keyword `const` is written in a wrong case | ||
//~| ERROR keyword `unsafe` is written in a wrong case | ||
//~| ERROR keyword `fn` is written in a wrong case | ||
|
||
unsafe extern fn _f() {} | ||
//~^ ERROR keyword `unsafe` is written in a wrong case | ||
//~| ERROR keyword `extern` is written in a wrong case | ||
|
||
extern "C" fn _g() {} | ||
//~^ ERROR keyword `extern` is written in a wrong case | ||
//~| ERROR keyword `fn` 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 |
---|---|---|
@@ -1,7 +1,34 @@ | ||
// run-rustfix | ||
// edition:2018 | ||
#![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 | ||
|
||
async Fn _a() {} | ||
//~^ ERROR keyword `fn` is written in a wrong case | ||
|
||
Fn _b() {} | ||
//~^ ERROR keyword `fn` is written in a wrong case | ||
|
||
aSYNC fN _c() {} | ||
//~^ ERROR keyword `async` is written in a wrong case | ||
//~| ERROR keyword `fn` is written in a wrong case | ||
|
||
Async fn _d() {} | ||
//~^ ERROR keyword `async` is written in a wrong case | ||
|
||
CONST UNSAFE FN _e() {} | ||
//~^ ERROR keyword `const` is written in a wrong case | ||
//~| ERROR keyword `unsafe` is written in a wrong case | ||
//~| ERROR keyword `fn` is written in a wrong case | ||
|
||
unSAFE EXTern fn _f() {} | ||
//~^ ERROR keyword `unsafe` is written in a wrong case | ||
//~| ERROR keyword `extern` is written in a wrong case | ||
|
||
EXTERN "C" FN _g() {} | ||
//~^ ERROR keyword `extern` is written in a wrong case | ||
//~| ERROR keyword `fn` is written in a wrong case |
Oops, something went wrong.