Skip to content

clarify resolve typo suggestion - #57477

Merged
bors merged 1 commit into
rust-lang:masterfrom
euclio:clarify-lev-suggestion
Jan 14, 2019
Merged

clarify resolve typo suggestion#57477
bors merged 1 commit into
rust-lang:masterfrom
euclio:clarify-lev-suggestion

Conversation

@euclio

Copy link
Copy Markdown
Contributor

Include the kind of the binding that we're suggesting, and use a
structured suggestion.

Fixes#53445.

Include the kind of the binding that we're suggesting, and use a
structured suggestion.
@rust-highfive

Copy link
Copy Markdown
Contributor

r? @zackmdavis

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 9, 2019
@zackmdavis

Copy link
Copy Markdown
Contributor

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",

Copy link
Copy Markdown
Contributor

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.

@zackmdavis

Copy link
Copy Markdown
Contributor

I'll review this tonight

That was slightly optimistic, but only by a day

@euclio thanks!! 💖 ✏️

@bors r+

@bors

bors commented Jan 13, 2019

Copy link
Copy Markdown
Collaborator

📌 Commit 404ad50 has been approved by zackmdavis

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jan 13, 2019
@CentrilCentril mentioned this pull request Jan 14, 2019
Centril added a commit to Centril/rust that referenced this pull request Jan 14, 2019
…ckmdavis
clarify resolve typo suggestion
Include the kind of the binding that we're suggesting, and use a
structured suggestion.
Fixesrust-lang#53445.
Centril added a commit to Centril/rust that referenced this pull request Jan 14, 2019
…ckmdavis
clarify resolve typo suggestion
Include the kind of the binding that we're suggesting, and use a
structured suggestion.
Fixesrust-lang#53445.
@CentrilCentril mentioned this pull request Jan 14, 2019
bors added a commit that referenced this pull request Jan 14, 2019
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
@bors
bors merged commit 404ad50 into rust-lang:masterJan 14, 2019
@euclio
euclio deleted the clarify-lev-suggestion branch January 14, 2019 15:51
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@euclio@rust-highfive@zackmdavis@bors