From b67608857243a2cd5a397e4b13add4b477f00d57 Mon Sep 17 00:00:00 2001 From: BlackHoleFox Date: Tue, 23 Aug 2022 14:11:50 -0500 Subject: [PATCH] Update non-ASCII crate name warning message --- src/cargo/ops/cargo_new.rs | 3 +-- tests/testsuite/new.rs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/cargo/ops/cargo_new.rs b/src/cargo/ops/cargo_new.rs index 8a0cf5f08f0..db2156ed70e 100644 --- a/src/cargo/ops/cargo_new.rs +++ b/src/cargo/ops/cargo_new.rs @@ -253,8 +253,7 @@ fn check_name( if restricted_names::is_non_ascii_name(name) { shell.warn(format!( "the name `{}` contains non-ASCII characters\n\ - Support for non-ASCII crate names is experimental and only valid \ - on the nightly toolchain.", + Non-ASCII crate names are not supported by Rust.", name ))?; } diff --git a/tests/testsuite/new.rs b/tests/testsuite/new.rs index 92a5ed46555..473770ed2cd 100644 --- a/tests/testsuite/new.rs +++ b/tests/testsuite/new.rs @@ -435,7 +435,7 @@ fn non_ascii_name() { .with_stderr( "\ [WARNING] the name `Привет` contains non-ASCII characters -Support for non-ASCII crate names is experimental and only valid on the nightly toolchain. +Non-ASCII crate names are not supported by Rust. [CREATED] binary (application) `Привет` package ", )