-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
74fd001
commit e90e259
Showing
8 changed files
with
239 additions
and
15 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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
//@ run-rustfix | ||
|
||
#![allow(unused)] | ||
|
||
use ::std::{cell as _}; //~ ERROR path separator must be a double colon | ||
use std::cell::*; //~ ERROR path separator must be a double colon | ||
use std::cell::Cell; //~ ERROR path separator must be a double colon | ||
use std::{cell as _}; //~ ERROR path separator must be a double colon | ||
|
||
mod foo{ | ||
use ::{}; //~ ERROR path separator must be a double colon | ||
use ::*; //~ ERROR path separator must be a double colon | ||
} | ||
|
||
fn main() { | ||
let c: ::std::cell::Cell::<u8> = Cell::<u8>::new(0); | ||
//~^ ERROR path separator must be a double colon | ||
//~| ERROR path separator must be a double colon | ||
//~| ERROR path separator must be a double colon | ||
//~| ERROR path separator must be a double colon | ||
//~| ERROR path separator must be a double colon | ||
//~| ERROR path separator must be a double colon | ||
} |
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,23 @@ | ||
//@ run-rustfix | ||
|
||
#![allow(unused)] | ||
|
||
use :::std::{cell as _}; //~ ERROR path separator must be a double colon | ||
use std::cell:::*; //~ ERROR path separator must be a double colon | ||
use std::cell:::Cell; //~ ERROR path separator must be a double colon | ||
use std:::{cell as _}; //~ ERROR path separator must be a double colon | ||
|
||
mod foo{ | ||
use :::{}; //~ ERROR path separator must be a double colon | ||
use :::*; //~ ERROR path separator must be a double colon | ||
} | ||
|
||
fn main() { | ||
let c: :::std:::cell:::Cell:::<u8> = Cell:::<u8>:::new(0); | ||
//~^ ERROR path separator must be a double colon | ||
//~| ERROR path separator must be a double colon | ||
//~| ERROR path separator must be a double colon | ||
//~| ERROR path separator must be a double colon | ||
//~| ERROR path separator must be a double colon | ||
//~| ERROR path separator must be a double colon | ||
} |
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,146 @@ | ||
error: path separator must be a double colon | ||
--> $DIR/triple-colon.rs:5:7 | ||
| | ||
LL | use :::std::{cell as _}; | ||
| ^ | ||
| | ||
help: use a double colon instead | ||
| | ||
LL - use :::std::{cell as _}; | ||
LL + use ::std::{cell as _}; | ||
| | ||
|
||
error: path separator must be a double colon | ||
--> $DIR/triple-colon.rs:6:16 | ||
| | ||
LL | use std::cell:::*; | ||
| ^ | ||
| | ||
help: use a double colon instead | ||
| | ||
LL - use std::cell:::*; | ||
LL + use std::cell::*; | ||
| | ||
|
||
error: path separator must be a double colon | ||
--> $DIR/triple-colon.rs:7:16 | ||
| | ||
LL | use std::cell:::Cell; | ||
| ^ | ||
| | ||
help: use a double colon instead | ||
| | ||
LL - use std::cell:::Cell; | ||
LL + use std::cell::Cell; | ||
| | ||
|
||
error: path separator must be a double colon | ||
--> $DIR/triple-colon.rs:8:10 | ||
| | ||
LL | use std:::{cell as _}; | ||
| ^ | ||
| | ||
help: use a double colon instead | ||
| | ||
LL - use std:::{cell as _}; | ||
LL + use std::{cell as _}; | ||
| | ||
|
||
error: path separator must be a double colon | ||
--> $DIR/triple-colon.rs:11:11 | ||
| | ||
LL | use :::{}; | ||
| ^ | ||
| | ||
help: use a double colon instead | ||
| | ||
LL - use :::{}; | ||
LL + use ::{}; | ||
| | ||
|
||
error: path separator must be a double colon | ||
--> $DIR/triple-colon.rs:12:11 | ||
| | ||
LL | use :::*; | ||
| ^ | ||
| | ||
help: use a double colon instead | ||
| | ||
LL - use :::*; | ||
LL + use ::*; | ||
| | ||
|
||
error: path separator must be a double colon | ||
--> $DIR/triple-colon.rs:16:14 | ||
| | ||
LL | let c: :::std:::cell:::Cell:::<u8> = Cell:::<u8>:::new(0); | ||
| ^ | ||
| | ||
help: use a double colon instead | ||
| | ||
LL - let c: :::std:::cell:::Cell:::<u8> = Cell:::<u8>:::new(0); | ||
LL + let c: ::std:::cell:::Cell:::<u8> = Cell:::<u8>:::new(0); | ||
| | ||
|
||
error: path separator must be a double colon | ||
--> $DIR/triple-colon.rs:16:20 | ||
| | ||
LL | let c: :::std:::cell:::Cell:::<u8> = Cell:::<u8>:::new(0); | ||
| ^ | ||
| | ||
help: use a double colon instead | ||
| | ||
LL - let c: :::std:::cell:::Cell:::<u8> = Cell:::<u8>:::new(0); | ||
LL + let c: :::std::cell:::Cell:::<u8> = Cell:::<u8>:::new(0); | ||
| | ||
|
||
error: path separator must be a double colon | ||
--> $DIR/triple-colon.rs:16:27 | ||
| | ||
LL | let c: :::std:::cell:::Cell:::<u8> = Cell:::<u8>:::new(0); | ||
| ^ | ||
| | ||
help: use a double colon instead | ||
| | ||
LL - let c: :::std:::cell:::Cell:::<u8> = Cell:::<u8>:::new(0); | ||
LL + let c: :::std:::cell::Cell:::<u8> = Cell:::<u8>:::new(0); | ||
| | ||
|
||
error: path separator must be a double colon | ||
--> $DIR/triple-colon.rs:16:34 | ||
| | ||
LL | let c: :::std:::cell:::Cell:::<u8> = Cell:::<u8>:::new(0); | ||
| ^ | ||
| | ||
help: use a double colon instead | ||
| | ||
LL - let c: :::std:::cell:::Cell:::<u8> = Cell:::<u8>:::new(0); | ||
LL + let c: :::std:::cell:::Cell::<u8> = Cell:::<u8>:::new(0); | ||
| | ||
|
||
error: path separator must be a double colon | ||
--> $DIR/triple-colon.rs:16:48 | ||
| | ||
LL | let c: :::std:::cell:::Cell:::<u8> = Cell:::<u8>:::new(0); | ||
| ^ | ||
| | ||
help: use a double colon instead | ||
| | ||
LL - let c: :::std:::cell:::Cell:::<u8> = Cell:::<u8>:::new(0); | ||
LL + let c: :::std:::cell:::Cell:::<u8> = Cell::<u8>:::new(0); | ||
| | ||
|
||
error: path separator must be a double colon | ||
--> $DIR/triple-colon.rs:16:55 | ||
| | ||
LL | let c: :::std:::cell:::Cell:::<u8> = Cell:::<u8>:::new(0); | ||
| ^ | ||
| | ||
help: use a double colon instead | ||
| | ||
LL - let c: :::std:::cell:::Cell:::<u8> = Cell:::<u8>:::new(0); | ||
LL + let c: :::std:::cell:::Cell:::<u8> = Cell:::<u8>::new(0); | ||
| | ||
|
||
error: aborting due to 12 previous errors | ||
|