Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update compiler error message for E0761 #84828

Closed
Zerotask opened this issue May 2, 2021 · 1 comment · Fixed by #84854
Closed

Update compiler error message for E0761 #84828

Zerotask opened this issue May 2, 2021 · 1 comment · Fixed by #84854
Assignees
Labels
A-diagnostics Area: Messages for errors, warnings, and lints D-terse Diagnostics: An error or lint that doesn't give enough information about the problem at hand. E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@Zerotask
Copy link

Zerotask commented May 2, 2021

The compiler error message for E0761
image

should include the src folder and it should use double quotes, similar to the help message of compiler error E0583:

image

Before

error[E0761]: file for module `user` found at both user.rs and user\mod.rs

After

error[E0761]: file for module `user` found at both "src\user.rs" and "src\user\mod.rs"

@jyn514 jyn514 added A-diagnostics Area: Messages for errors, warnings, and lints D-terse Diagnostics: An error or lint that doesn't give enough information about the problem at hand. E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels May 2, 2021
@hi-rustin
Copy link
Member

@rustbot claim

GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this issue May 3, 2021
@bors bors closed this as completed in 3777221 May 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-diagnostics Area: Messages for errors, warnings, and lints D-terse Diagnostics: An error or lint that doesn't give enough information about the problem at hand. E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants