-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Tracking issue for RFC 2457, "Allow non-ASCII identifiers" #55467
Copy link
Copy link
Closed
Labels
B-RFC-approvedBlocker: Approved by a merged RFC but not yet implemented.Blocker: Approved by a merged RFC but not yet implemented.B-RFC-implementedBlocker: Approved by a merged RFC and implemented but not stabilized.Blocker: Approved by a merged RFC and implemented but not stabilized.B-unstableBlocker: Implemented in the nightly compiler and unstable.Blocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCF-non_ascii_idents`#![feature(non_ascii_idents)]``#![feature(non_ascii_idents)]`T-langRelevant to the language teamRelevant to the language teamdisposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.
Metadata
Metadata
Assignees
Labels
B-RFC-approvedBlocker: Approved by a merged RFC but not yet implemented.Blocker: Approved by a merged RFC but not yet implemented.B-RFC-implementedBlocker: Approved by a merged RFC and implemented but not stabilized.Blocker: Approved by a merged RFC and implemented but not stabilized.B-unstableBlocker: Implemented in the nightly compiler and unstable.Blocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCF-non_ascii_idents`#![feature(non_ascii_idents)]``#![feature(non_ascii_idents)]`T-langRelevant to the language teamRelevant to the language teamdisposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
This is a tracking issue for the RFC "Allow non-ASCII identifiers" (rust-lang/rfcs#2457).
Steps:
#![forbid(non_ascii_idents)]works. (non_ascii_identslint (part of RFC 2457) #61883)confusable_idents(Implementconfusable_identslint. #71542, Implement mixed script confusable lint. #72770)less_used_codepointsuncommon_codepoints(Implement uncommon_codepoints lint. #67810)bad stylenon_standard_style" lints. (See Split and expand nonstandard-style lints unicode unit test. #73839)mixed_script_confusables(Implement mixed script confusable lint. #72770)mod фоо;), extern crates and paths with a first segment naming a crate should not be able to do filesystem search using those non-ASCII identifiers (i.e. no ,extern crate ьаг;orму_сгате::baz). (Disallow loading crates with non-ascii identifier name. #73305)non-ascii-idents#83799)Unresolved questions:
Resolved: DWARF and debuggers handle UTF-8 just fine
less_used_codepointslint?Resolved in favour of
uncommon_codepointsResolved in favor of
mixed_script_confusables(Statics shadow local variables causing "refutable pattern error", and non-obvious bugs. #7526, We shouldn't even try to resolve irrefutable patterns as constants #49680)?
Can we improve precision of linting here?
mixed_script_confusables, do we actually need to make an exception forLatinidentifiers?XID_Start/XID_Continue? XID_Start / XID_Continue might not be quite right #4928zulip channel topic for real-time discussion:
https://rust-lang.zulipchat.com/#narrow/stream/213817-t-lang/topic/nonascii.20identifiers(rfc.202457)