Add suggestions for misspelled labels#45173
Conversation
|
r? @eddyb (rust_highfive has picked a reviewer for you, use r? to override) |
src/librustc_resolve/lib.rs
Outdated
There was a problem hiding this comment.
Could you replace the default label with Levenshtein-based message instead to avoid multiple messages?
if some lev_candidate {
span_label("did you mean...")
} else {
span_label("undeclared label")
}
|
LGTM modulo #45173 (comment) |
b998a93 to
b9ba10e
Compare
Another part of #30197
b9ba10e to
843dc60
Compare
|
@bors r+ |
|
📌 Commit 843dc60 has been approved by |
|
⌛ Testing commit 843dc60 with merge 2cedc4b58db20d3715cbfe40bed1d05b8de30c86... |
|
💔 Test failed - status-travis |
|
@bors retry
|
|
Is there something I need to do here? |
|
@laumann Nope. There was an incident several hours ago causing the CI to reject every PR. Now that it is fixed, all approved PR are re-queued. Currently this is at the 19th place in the queue, so expect to wait about 2 days before this actually get tested. |
|
@kennytm Oh, ok, thanks for the explanation :-) |
|
@bors rollup |
…r=petrochenkov Add suggestions for misspelled labels Another part of rust-lang#30197
Another part of #30197