From 0ad45941771246879c6100028d87e25e818737b6 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Fri, 13 Dec 2024 06:48:20 -0800 Subject: [PATCH] =?UTF-8?q?Clarify=20that=20`extern=20crate=20foo=20as=20f?= =?UTF-8?q?=C3=B8=C3=B8`=20is=20allowed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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). --- src/identifiers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/identifiers.md b/src/identifiers.md index c510321bb..42468b52f 100644 --- a/src/identifiers.md +++ b/src/identifiers.md @@ -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