-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Disallow forbidden usage of non-ascii identifiers. #72259
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
Conversation
Some changes occurred in diagnostic error codes |
This comment has been minimized.
This comment has been minimized.
3675bfe
to
d401518
Compare
Could you move both checks into |
There's one more place where identifier can be used for searching filesystem locations - crate names. We cannot prohibit non-ascii identifiers in arbitrary paths, so this needs to be done more precisely in the crate loader. |
@petrochenkov I will address the implementations changes. But i don't have the permission to update the TODO list though... |
d401518
to
640e722
Compare
Updated the implementation! Ready for review again. |
r=me with the remaining comments addressed. |
e4a80fc
to
de24dda
Compare
Addressed the remaining comments, now just need to wait for CI. |
@bors r+ |
📌 Commit de24dda has been approved by |
Rollup of 3 pull requests Successful merges: - rust-lang#72259 (Disallow forbidden usage of non-ascii identifiers.) - rust-lang#72261 (Break out early on empty span when generate_fn_span) - rust-lang#72291 (bootstrap: fix typo) Failed merges: r? @ghost
Part of RFC2457, this tightens allowed identifiers back to ascii only in two situations.
r? @petrochenkov