Skip to content

Commit b676088

Browse files
committed
Update non-ASCII crate name warning message
1 parent fee1c7f commit b676088

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/cargo/ops/cargo_new.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,7 @@ fn check_name(
253253
if restricted_names::is_non_ascii_name(name) {
254254
shell.warn(format!(
255255
"the name `{}` contains non-ASCII characters\n\
256-
Support for non-ASCII crate names is experimental and only valid \
257-
on the nightly toolchain.",
256+
Non-ASCII crate names are not supported by Rust.",
258257
name
259258
))?;
260259
}

tests/testsuite/new.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ fn non_ascii_name() {
435435
.with_stderr(
436436
"\
437437
[WARNING] the name `Привет` contains non-ASCII characters
438-
Support for non-ASCII crate names is experimental and only valid on the nightly toolchain.
438+
Non-ASCII crate names are not supported by Rust.
439439
[CREATED] binary (application) `Привет` package
440440
",
441441
)

0 commit comments

Comments
 (0)