-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Showing
30 changed files
with
62 additions
and
233 deletions.
There are no files selected for viewing
40 changes: 0 additions & 40 deletions
40
src/doc/unstable-book/src/language-features/extern-in-paths.md
This file was deleted.
Oops, something went wrong.
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,12 +1,9 @@ | ||
-include ../tools.mk | ||
|
||
all: extern_absolute_paths.rs extern_in_paths.rs krate2 | ||
all: extern_absolute_paths.rs krate2 | ||
$(RUSTC) extern_absolute_paths.rs -Zsave-analysis --edition=2018 \ | ||
-Z unstable-options --extern krate2 | ||
cat $(TMPDIR)/save-analysis/extern_absolute_paths.json | "$(PYTHON)" validate_json.py | ||
$(RUSTC) extern_in_paths.rs -Zsave-analysis --edition=2018 \ | ||
-Z unstable-options --extern krate2 | ||
cat $(TMPDIR)/save-analysis/extern_in_paths.json | "$(PYTHON)" validate_json.py | ||
|
||
krate2: krate2.rs | ||
$(RUSTC) $< |
7 changes: 0 additions & 7 deletions
7
src/test/run-make-fulldeps/save-analysis-rfc2126/extern_in_paths.rs
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
src/test/run-pass/rfcs/rfc-2126-extern-absolute-paths/extern.rs
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
src/test/ui/feature-gates/feature-gate-extern_in_paths.stderr
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
src/test/ui/keyword/extern/keyword-extern-as-identifier-expr.rs
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,3 @@ | ||
fn main() { | ||
let s = extern::foo::Bar; //~ ERROR expected expression, found keyword `extern` | ||
} |
8 changes: 8 additions & 0 deletions
8
src/test/ui/keyword/extern/keyword-extern-as-identifier-expr.stderr
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,8 @@ | ||
error: expected expression, found keyword `extern` | ||
--> $DIR/keyword-extern-as-identifier-expr.rs:2:13 | ||
| | ||
LL | let s = extern::foo::Bar; //~ ERROR expected expression, found keyword `extern` | ||
| ^^^^^^ expected expression | ||
|
||
error: aborting due to previous error | ||
|
3 changes: 3 additions & 0 deletions
3
src/test/ui/keyword/extern/keyword-extern-as-identifier-pat.rs
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,3 @@ | ||
fn main() { | ||
let extern = 0; //~ ERROR expected pattern, found keyword `extern` | ||
} |
8 changes: 8 additions & 0 deletions
8
src/test/ui/keyword/extern/keyword-extern-as-identifier-pat.stderr
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,8 @@ | ||
error: expected pattern, found keyword `extern` | ||
--> $DIR/keyword-extern-as-identifier-pat.rs:2:9 | ||
| | ||
LL | let extern = 0; //~ ERROR expected pattern, found keyword `extern` | ||
| ^^^^^^ expected pattern | ||
|
||
error: aborting due to previous error | ||
|
3 changes: 3 additions & 0 deletions
3
src/test/ui/keyword/extern/keyword-extern-as-identifier-type.rs
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,3 @@ | ||
type A = extern::foo::bar; //~ ERROR expected `fn`, found `::` | ||
|
||
fn main() {} |
8 changes: 8 additions & 0 deletions
8
src/test/ui/keyword/extern/keyword-extern-as-identifier-type.stderr
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,8 @@ | ||
error: expected `fn`, found `::` | ||
--> $DIR/keyword-extern-as-identifier-type.rs:1:16 | ||
| | ||
LL | type A = extern::foo::bar; //~ ERROR expected `fn`, found `::` | ||
| ^^ expected `fn` here | ||
|
||
error: aborting due to previous error | ||
|
3 changes: 3 additions & 0 deletions
3
src/test/ui/keyword/extern/keyword-extern-as-identifier-use.rs
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,3 @@ | ||
use extern::foo; //~ ERROR expected identifier, found keyword `extern` | ||
|
||
fn main() {} |
12 changes: 12 additions & 0 deletions
12
src/test/ui/keyword/extern/keyword-extern-as-identifier-use.stderr
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,12 @@ | ||
error: expected identifier, found keyword `extern` | ||
--> $DIR/keyword-extern-as-identifier-use.rs:1:5 | ||
| | ||
LL | use extern::foo; //~ ERROR expected identifier, found keyword `extern` | ||
| ^^^^^^ expected identifier, found keyword | ||
help: you can escape reserved keywords to use them as identifiers | ||
| | ||
LL | use r#extern::foo; //~ ERROR expected identifier, found keyword `extern` | ||
| ^^^^^^^^ | ||
|
||
error: aborting due to previous error | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.