forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
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
29 changed files
with
45 additions
and
165 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,7 @@ | |
|
||
pub mod inner_modrs_mod; | ||
pub mod inner_foors_mod; | ||
pub mod inline { | ||
#[path="somename.rs"] | ||
pub mod innie; | ||
} |
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 @@ | ||
pub fn foo() {} |
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 @@ | ||
pub fn foo() {} |
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 |
---|---|---|
|
@@ -10,3 +10,7 @@ | |
|
||
pub mod inner_modrs_mod; | ||
pub mod inner_foors_mod; | ||
pub mod inline { | ||
#[path="somename.rs"] | ||
pub mod innie; | ||
} |
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,16 @@ | ||
// run-pass | ||
// | ||
// ignore-pretty issue #37195 | ||
pub mod modrs_mod; | ||
pub mod foors_mod; | ||
#[path = "some_crazy_attr_mod_dir/arbitrary_name.rs"] | ||
pub mod attr_mod; | ||
pub fn main() { | ||
modrs_mod::inner_modrs_mod::innest::foo(); | ||
modrs_mod::inner_foors_mod::innest::foo(); | ||
modrs_mod::inline::innie::foo(); | ||
foors_mod::inner_modrs_mod::innest::foo(); | ||
foors_mod::inner_foors_mod::innest::foo(); | ||
foors_mod::inline::innie::foo(); | ||
attr_mod::inner_modrs_mod::innest::foo(); | ||
} |
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,5 @@ | ||
// ignore-test this is just a helper for the real test in this dir | ||
|
||
mod inline { | ||
mod missing; | ||
} |
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
2 changes: 2 additions & 0 deletions
2
src/test/ui/missing_non_modrs_mod/missing_non_modrs_mod_inline.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,2 @@ | ||
mod foo_inline; | ||
fn main() {} |
11 changes: 11 additions & 0 deletions
11
src/test/ui/missing_non_modrs_mod/missing_non_modrs_mod_inline.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,11 @@ | ||
error[E0583]: file not found for module `missing` | ||
--> $DIR/foo_inline.rs:4:9 | ||
| | ||
LL | mod missing; | ||
| ^^^^^^^ | ||
| | ||
= help: name the file either missing.rs or missing/mod.rs inside the directory "$DIR/foo_inline/inline" | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0583`. |
This file was deleted.
Oops, something went wrong.
Empty file.
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
src/test/ui/non_modrs_mods/foors_mod/inner_foors_mod/innest.rs
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
src/test/ui/non_modrs_mods/foors_mod/inner_modrs_mod/innest.rs
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
src/test/ui/non_modrs_mods/foors_mod/inner_modrs_mod/mod.rs
This file was deleted.
Oops, something went wrong.
Empty file.
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
src/test/ui/non_modrs_mods/modrs_mod/inner_foors_mod/innest.rs
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
src/test/ui/non_modrs_mods/modrs_mod/inner_modrs_mod/innest.rs
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
src/test/ui/non_modrs_mods/modrs_mod/inner_modrs_mod/mod.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/non_modrs_mods/some_crazy_attr_mod_dir/arbitrary_name.rs
This file was deleted.
Oops, something went wrong.
Empty file.
11 changes: 0 additions & 11 deletions
11
src/test/ui/non_modrs_mods/some_crazy_attr_mod_dir/inner_modrs_mod/innest.rs
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
src/test/ui/non_modrs_mods/some_crazy_attr_mod_dir/inner_modrs_mod/mod.rs
This file was deleted.
Oops, something went wrong.