-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Make references to GitHub issues in diagnostics consistent #62976
Comments
General steps:
|
@shepmaster I'd like to take this up. Seems like a good first contribution to Rust. |
@punitkoura that’s wonderful! ❤️
I don’t think there’s any rush; it was mostly a minor annoyance I had when maintaining the playground. |
I did an initial pass finding the different types of patterns of referencing Github issues. I was able to find 8 different types as follows - (base) C02XF1TZJHD3:rust pkoura$ grep -rh --include "*.stderr" "/issues/" src/test/ui | sed -E 's/\#[0-9]+/#<ISSUE>/g' | sed -E 's/issues\/[0-9]+/issues\/<ISSUE>/g' | sort -u
see https://github.com/rust-lang/rust/issues/<ISSUE> for more details
= note: for more information, see https://github.com/rust-lang/rust/issues/<ISSUE>
= note: for more information, see issue #<ISSUE> <https://github.com/rust-lang/rust/issues/<ISSUE>>
= note: for more information, see issue https://github.com/rust-lang/rust/issues/<ISSUE>
= note: the trait is implemented for `()`. Possibly this error has been caused by changes to Rust's type-inference algorithm (see: https://github.com/rust-lang/rust/issues/<ISSUE> for more info). Consider whether you meant to use the type `()` here instead.
error: use of deprecated attribute `no_debug`: the `#[no_debug]` attribute was an experimental feature that has been deprecated due to lack of demand. See https://github.com/rust-lang/rust/issues/<ISSUE>
note: use of `&&` operator here does not actually short circuit due to the const evaluator presently not being able to do control flow. See https://github.com/rust-lang/rust/issues/<ISSUE> for more information.
warning: use of deprecated attribute `no_debug`: the `#[no_debug]` attribute was an experimental feature that has been deprecated due to lack of demand. See https://github.com/rust-lang/rust/issues/<ISSUE> |
Will focus now on identifying the sources of these patterns in the source code. |
@shepmaster please take a look at #63008 PR. @punitkoura, thanks for a list of patterns, you might take a look as well. |
@punitkoura: if you want help finding another good issue to work on, feel free to send me a message on Discord or Zulip. Any of the E-easy or E-mentor issues are good choices, though. |
Thanks @varkor. I'll be on the lookout 🙂 |
Make "see issue" consistent Fixes rust-lang#62976. h/t to @punitkoura for initial patterns search. r? @varkor
…, r=Dylan-DPC Make issue references consistent Fixes rust-lang#62976 cc rust-lang#63008 r? @varkor because you reviewed the original pr
Some diagnostics include a link to GitHub issues. From the ui testsuite, I found at least these two patterns:
These should use the same format. My preference is for the latter:
/cc @varkor
The text was updated successfully, but these errors were encountered: