Skip to content

Commit 8e74c6b

Browse files
committed
Relocate modules_and_files_visibility/mod_file_disambig.rs to
modules/mod_file_disambig.rs add fix
1 parent 58a802e commit 8e74c6b

File tree

9 files changed

+17
-33
lines changed

9 files changed

+17
-33
lines changed

tests/ui/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -957,10 +957,6 @@ Tests on the module system.
957957

958958
**FIXME**: `tests/ui/imports/` should probably be merged with this.
959959

960-
## `tests/ui/modules_and_files_visibility/`
961-
962-
**FIXME**: Merge with `tests/ui/modules/`.
963-
964960
## `tests/ui/moves`
965961

966962
Tests on moves (destructive moves).

tests/ui/modules/mod_file_aux.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
//@ ignore-auxiliary (used by `./mod_file_with_path_attr.rs` and `mod_file.rs` and `mod_file_correct_spans.rs`)
2+
// ignore-tidy-linelength
23

34
pub fn foo() -> isize { 10 }
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
//! related issue <https://github.com/rust-lang/rust/issues/4116>
2+
3+
mod mod_file_disambig_aux; //~ ERROR file for module `mod_file_disambig_aux` found at both
4+
5+
fn main() {}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
error[E0761]: file for module `mod_file_disambig_aux` found at both "$DIR/mod_file_disambig_aux.rs" and "$DIR/mod_file_disambig_aux/mod.rs"
2+
--> $DIR/mod_file_disambig.rs:3:1
3+
|
4+
LL | mod mod_file_disambig_aux;
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
6+
|
7+
= help: delete or rename one of them to remove the ambiguity
8+
9+
error: aborting due to 1 previous error
10+
11+
For more information about this error, try `rustc --explain E0761`.

tests/ui/modules_and_files_visibility/mod_file_disambig_aux.rs renamed to tests/ui/modules/mod_file_disambig_aux.rs

File renamed without changes.

tests/ui/modules_and_files_visibility/mod_file_disambig_aux/compiletest-ignore-dir renamed to tests/ui/modules/mod_file_disambig_aux/compiletest-ignore-dir

File renamed without changes.

tests/ui/modules_and_files_visibility/mod_file_disambig_aux/mod.rs renamed to tests/ui/modules/mod_file_disambig_aux/mod.rs

File renamed without changes.

tests/ui/modules_and_files_visibility/mod_file_disambig.rs

Lines changed: 0 additions & 6 deletions
This file was deleted.

tests/ui/modules_and_files_visibility/mod_file_disambig.stderr

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)