-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Resolve: improve diagnostics for duplicate definitions and imports #32284
Conversation
06b5343
to
2b70c17
Compare
2b70c17
to
b3c6265
Compare
@bors r+ Nice! |
📌 Commit b3c6265 has been approved by |
⌛ Testing commit b3c6265 with merge 27db693... |
💔 Test failed - auto-win-gnu-32-opt-rustbuild |
@bors: retry On Wed, Mar 16, 2016 at 2:20 PM, bors notifications@github.com wrote:
|
Resolve: improve diagnostics for duplicate definitions and imports This PR improves and regularizes the diagnostics for duplicate definitions and imports. After this PR, the second of two duplicate definitions/imports will have the following form: > a(n) [value|type|module|trait|extern crate] named \`*name*\` has already been [defined|imported] in this [module|block|trait|enum] with a note referencing this first of the two duplicate definitions/imports: > previous [definition|import] of \`*name*\` here The error indices remain unchanged. r? @eddyb
This PR improves and regularizes the diagnostics for duplicate definitions and imports.
After this PR, the second of two duplicate definitions/imports will have the following form:
with a note referencing the first of the two duplicate definitions/imports:
The error indices remain unchanged.
r? @eddyb