Skip to content

Commit 0ad4594

Browse files
committed
Clarify that extern crate foo as føø is allowed
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).
1 parent d6d24b9 commit 0ad4594

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/identifiers.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Zero width non-joiner (ZWNJ U+200C) and zero width joiner (ZWJ U+200D) character
4747
r[ident.ascii-limitations]
4848
Identifiers are restricted to the ASCII subset of [`XID_Start`] and [`XID_Continue`] in the following situations:
4949

50-
* [`extern crate`] declarations
50+
* [`extern crate`] declarations (except the _AsClause_ identifier)
5151
* External crate names referenced in a [path]
5252
* [Module] names loaded from the filesystem without a [`path` attribute]
5353
* [`no_mangle`] attributed items

0 commit comments

Comments
 (0)