-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Suggest path separator for single-colon typos #68681
Conversation
This commit adds guidance for when a user means to type a path, but ends up typing a single colon, such as `<<Impl as T>:Ty>`. This change seemed pertinent as the current error message is particularly misleading, emitting `error: unmatched angle bracket`, despite the angle bracket being matched later on, leaving the user to track down the typo'd colon.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! This is looking good but there are some things I'd like to see improved:
This comment has been minimized.
This comment has been minimized.
Thanks for your reviews and guidance! |
Looks really great, thanks! r=me when green. |
@bors r=Centril Here we go. Thanks for a great first rust PR experience! |
@bobrippling: 🔑 Insufficient privileges: Not in reviewers |
@bors r+ |
📌 Commit 07ee472 has been approved by |
…ets, r=Centril Suggest path separator for single-colon typos This commit adds guidance for when a user means to type a path, but ends up typing a single colon, such as `<<Impl as T>:Ty>`. This change seemed pertinent as the current error message is particularly misleading, emitting `error: unmatched angle bracket`, despite the angle bracket being matched later on, leaving the user to track down the typo'd colon.
Rollup of 7 pull requests Successful merges: - #68460 (Use BufWriter for emitting MIR) - #68681 (Suggest path separator for single-colon typos) - #68688 ([docs] remind bug reporters to update nightly) - #68704 (Ignore `build` dir formatting) - #68727 (Remove a comment about pretty printer in formatting tests) - #68736 (Remove `Alloc` in favor of `AllocRef`) - #68740 (Do not suggest things named underscore) Failed merges: r? @ghost
This commit adds guidance for when a user means to type a path, but ends
up typing a single colon, such as
<<Impl as T>:Ty>
.This change seemed pertinent as the current error message is
particularly misleading, emitting
error: unmatched angle bracket
,despite the angle bracket being matched later on, leaving the user to
track down the typo'd colon.