-
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
clarify resolve typo suggestion #57477
Conversation
Include the kind of the binding that we're suggesting, and use a structured suggestion.
r? @zackmdavis (rust_highfive has picked a reviewer for you, use r? to override) |
I'll review this tonight |
let suggestion = this.lookup_typo_candidate(path, ns, is_expected, span); | ||
if let Some(suggestion) = suggestion { | ||
let msg = format!( | ||
"{} {} with a similar name exists", |
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.
I like this wording! (I had been unhappy with "did you mean"—the docs even say we don't want to phrase it as a question—but I wasn't sure what to replace it with.
📌 Commit 404ad50 has been approved by |
…ckmdavis clarify resolve typo suggestion Include the kind of the binding that we're suggesting, and use a structured suggestion. Fixes rust-lang#53445.
…ckmdavis clarify resolve typo suggestion Include the kind of the binding that we're suggesting, and use a structured suggestion. Fixes rust-lang#53445.
Rollup of 6 pull requests Successful merges: - #57232 (Parallelize and optimize parts of HIR map creation) - #57418 (MetadataOnlyCodegenBackend: run the collector only once) - #57465 (Stabilize cfg_target_vendor) - #57477 (clarify resolve typo suggestion) - #57556 (privacy: Fix private-in-public check for existential types) - #57584 (Remove the `connect_timeout_unroutable` test.) Failed merges: r? @ghost
Include the kind of the binding that we're suggesting, and use a
structured suggestion.
Fixes #53445.