Skip to content

Commit

Permalink
Clarify that extern crate foo as føø is allowed
Browse files Browse the repository at this point in the history
The `as` clause in `extern crate` is allowed to rename a crate name to a
non-ascii identifier (because that doesn't affect the filesystem).
  • Loading branch information
ehuss committed Dec 13, 2024
1 parent d6d24b9 commit 0ad4594
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/identifiers.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Zero width non-joiner (ZWNJ U+200C) and zero width joiner (ZWJ U+200D) character
r[ident.ascii-limitations]
Identifiers are restricted to the ASCII subset of [`XID_Start`] and [`XID_Continue`] in the following situations:

* [`extern crate`] declarations
* [`extern crate`] declarations (except the _AsClause_ identifier)
* External crate names referenced in a [path]
* [Module] names loaded from the filesystem without a [`path` attribute]
* [`no_mangle`] attributed items
Expand Down

0 comments on commit 0ad4594

Please sign in to comment.