Skip to content

Commit

Permalink
Update non-ASCII crate name warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackHoleFox committed Aug 23, 2022
1 parent fee1c7f commit b676088
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/cargo/ops/cargo_new.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
))?;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/testsuite/new.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
",
)
Expand Down

0 comments on commit b676088

Please sign in to comment.