-
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.
Rollup merge of #73122 - doctorn:issue-73116, r=varkor
Resolve E0584 conflict Adds a new error code (`E0761`) to indicate ambiguity in module file names and an accompanying expanded description to resolve a conflict over `E0584`. Resolves #73116
- Loading branch information
Showing
5 changed files
with
30 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Multiple candidate files were found for an out-of-line module. | ||
|
||
Erroneous code example: | ||
|
||
```rust | ||
// file: ambiguous_module/mod.rs | ||
|
||
fn foo() {} | ||
``` | ||
|
||
```rust | ||
// file: ambiguous_module.rs | ||
|
||
fn foo() {} | ||
``` | ||
|
||
```ignore (multiple source files required for compile_fail) | ||
mod ambiguous_module; // error: file for module `ambiguous_module` | ||
// found at both ambiguous_module.rs and | ||
// ambiguous_module.rs/mod.rs | ||
fn main() {} | ||
``` | ||
|
||
Please remove this ambiguity by deleting/renaming one of the candidate files. |
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