-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Support lowercase error codes in --explain
#86533
Support lowercase error codes in --explain
#86533
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @petrochenkov (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
@rustbot label +S-waiting-on-review -S-waiting-on-author |
r=me with commits squashed. |
c99a58c
to
0bb6bc4
Compare
Commits are squashed. I don't have r+ privileges, so I don't think I can r=. |
@bors r+ rollup |
📌 Commit 0bb6bc4 has been approved by |
⌛ Testing commit 0bb6bc4 with merge 7f9a1c1ebc1b46087108b4d6964459c25e48d5d1... |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@bors retry |
⌛ Testing commit 0bb6bc4 with merge 562b64dfdbaf6aa8f8dd67b96b7e853d52ca941d... |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
(Looks like CI is temporarily non-functional.) |
@bors retry |
Rollup of 8 pull requests Successful merges: - rust-lang#86137 (Error code cleanup and enforce checks) - rust-lang#86296 (Add documentation for various THIR structs) - rust-lang#86415 (Document associativity of iterator folds.) - rust-lang#86533 (Support lowercase error codes in `--explain`) - rust-lang#86536 (Edition 2021 enables disjoint capture) - rust-lang#86560 (Update cargo) - rust-lang#86561 (chore(rustdoc): Remove unused impl block) - rust-lang#86566 (Use `use_verbose` for `mir::Constant`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
This enables
rustc --explain
to accept a lowercase error code. Thus, for instance,rustc --explain e0573
would be valid after this change, where before a user would have needed to dorustc --explain E0573
. Although the upper case form of an error code is canonical, the user may prefer the easier-to-type lowercase form, and there's nothing to be gained by forcing them to type the upper case version.Resolves #86518.