Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upresolve: Levenshtein-based suggestions for non-import paths #38927
Conversation
rust-highfive
assigned
jseyfried
Jan 8, 2017
nagisa
reviewed
Jan 10, 2017
| --> $DIR/levenshtein.rs:20:10 | ||
| | | ||
| 20 | type B = Opiton<u8>; // Misspelled type name from the prelude. | ||
| | ^^^^^^^^^^ did you mean `Option`? |
This comment has been minimized.
This comment has been minimized.
nagisa
Jan 10, 2017
Contributor
Span seems weird here. Either suggest Option<u8> or have span to only point to Opiton.
This comment has been minimized.
This comment has been minimized.
petrochenkov
Jan 10, 2017
Author
Contributor
have span to only point to
Opiton
That would be nice, but path segments and identifiers in them don't have their own spans.
suggest
Option<u8>
In fact, type arguments are intentionally dropped from paths in resolve error messages - they are usually irrelevant and mostly bring noise. I tried to include them and it looked worse. I can make a separate branch with this change so you can look and compare.
This comment has been minimized.
This comment has been minimized.
nagisa
Jan 10, 2017
Contributor
I tried to include them and it looked worse. I can make a separate branch with this change so you can look and compare.
Never mind then.
This comment has been minimized.
This comment has been minimized.
|
Nice! @bors r+ |
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Jan 11, 2017
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
petrochenkov
force-pushed the
petrochenkov:leven
branch
from
0b54661
to
628f655
Jan 11, 2017
This comment has been minimized.
This comment has been minimized.
|
@bors r=jseyfried |
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Jan 13, 2017
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Jan 13, 2017
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
petrochenkov
force-pushed the
petrochenkov:leven
branch
from
628f655
to
589bd64
Jan 13, 2017
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Jan 14, 2017
This comment has been minimized.
This comment has been minimized.
|
|
petrochenkov commentedJan 8, 2017
This patch addresses both items from #30197 (comment) and therefore implements the largest part of #30197.
r? @jseyfried