-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Implement confusable_idents
lint.
#71542
Conversation
1b49fc2
to
d19b5d4
Compare
This will also need a perf run. |
d19b5d4
to
190c1f3
Compare
190c1f3
to
39bd7d7
Compare
Rebased and addressed review comments. The actual skeleton calculation is pending on unicode-rs/unicode-security#12 Should we do the perf run before or after the actual calculation is added? @petrochenkov |
39bd7d7
to
7d19c01
Compare
This comment has been minimized.
This comment has been minimized.
7d19c01
to
6384348
Compare
@bors try @rust-timer queue |
Insufficient permissions to issue commands to rust-timer. |
@crlf0710: 🔑 Insufficient privileges: not in try users |
This comment has been minimized.
This comment has been minimized.
6384348
to
10cd0a4
Compare
This comment has been minimized.
This comment has been minimized.
5eede9d
to
df8f2b0
Compare
This comment has been minimized.
This comment has been minimized.
☀️ Try build successful - checks-azure |
Queued faa97a0482a1a2dd0650603410128fe53ec06fbc with parent bd0bacc, future comparison URL. |
Finished benchmarking try commit faa97a0482a1a2dd0650603410128fe53ec06fbc, comparison URL. |
So it seems from the results after the optimizations does improve a little compared to the initial commit. |
So, the slowdown is from processing the symbol gallery rather than from collecting it? It's an isolated piece of code that can be benchmarked easily. |
Since the lint is allowed by default right now (and has too many false positives to be un-allowed), I wouldn't personally care too much about the slowdown and would merge this as is. |
If we land this with it as allow by default then I agree the performance of warning doesn't matter much. |
Thanks, let me address the comments, and re-allow the lint for now then. |
7f75533
to
f3ec00a
Compare
@bors r+ |
📌 Commit f3ec00a has been approved by |
…chenkov Implement `confusable_idents` lint. This collects all identifier symbols into `ParseSession` and examines them within the non-ascii-idents lint. The skeleton generation part needs to be added to `unicode-security` crate. Will update this PR when the crate is updated. r? @petrochenkov EDIT: also included the `concat_idents` part.
Rollup of 5 pull requests Successful merges: - rust-lang#71165 (`slice::fill`: use `T` instead of generic arg) - rust-lang#71314 (Implement RFC 2523, `#[cfg(version(..))]`) - rust-lang#71542 (Implement `confusable_idents` lint.) - rust-lang#71806 (typo) - rust-lang#71813 (Decode qualifs for associated const defaults) Failed merges: r? @ghost
This collects all identifier symbols into
ParseSession
and examines them within the non-ascii-idents lint.The skeleton generation part needs to be added to
unicode-security
crate. Will update this PR when the crate is updated.r? @petrochenkov
EDIT: also included the
concat_idents
part.