]> git.proxmox.com Git - cargo.git/commitdiff
Auto merge of #11017 - BlackHoleFox:non-ascii-names, r=weihanglo
authorbors <bors@rust-lang.org>
Tue, 23 Aug 2022 21:39:56 +0000 (21:39 +0000)
committerbors <bors@rust-lang.org>
Tue, 23 Aug 2022 21:39:56 +0000 (21:39 +0000)
Update non-ASCII crate name warning message

This PR fixes an outdated warning when initializing crates sometimes.

### What does this PR try to resolve?
Per [a Zulip convo](https://rust-lang.zulipchat.com/#narrow/stream/246057-t-cargo/topic/Non-ASCII.20crate.20name.20status/near/294876491) on the topic, non-ASCII crate names are no longer allowed on any toolchain since https://github.com/rust-lang/rust/pull/73305, during the `non_ascii_idents` feature's development. Cargo however tells the user that they are accepted on Nightly. Rust and Cargo should agree on this point to avoid future confusion.

### How should we test and review this PR?
This should be covered by the existing test that was changed but if desired its easy to test with a checkout:

```
Running `/Users/fox/x/Forks/cargo/target/release/cargo init 'ああああ'`
warning: the name `ああああ` contains non-ASCII characters
Non-ASCII crate names are not supported by Rust.
```


Trivial merge