-
Couldn't load subscription status.
- Fork 13.9k
Disallow loading crates with non-ascii identifier name. #73305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
(rust_highfive has picked a reviewer for you, use r? to override) |
388209b to
61cfc0c
Compare
This comment has been minimized.
This comment has been minimized.
61cfc0c to
c245f46
Compare
|
Could you put the error into |
c245f46 to
7149485
Compare
|
Updated addressing the review comments. |
7149485 to
1990f97
Compare
|
Thanks! |
|
📌 Commit 1990f97 has been approved by |
|
@bors rollup |
… r=petrochenkov Disallow loading crates with non-ascii identifier name. This turns off external crate loading with non-ascii identifier names. cc rust-lang#55467.
… r=petrochenkov Disallow loading crates with non-ascii identifier name. This turns off external crate loading with non-ascii identifier names. cc rust-lang#55467.
… r=petrochenkov Disallow loading crates with non-ascii identifier name. This turns off external crate loading with non-ascii identifier names. cc rust-lang#55467.
Rollup of 13 pull requests Successful merges: - rust-lang#70740 (Enabling static-pie for musl) - rust-lang#72331 (Report error when casting an C-like enum implementing Drop) - rust-lang#72486 (Fix asinh of negative values) - rust-lang#72497 (tag/niche terminology cleanup) - rust-lang#72999 (Create self-contained directory and move there some of external binaries/libs) - rust-lang#73130 (Remove const prop for indirects) - rust-lang#73142 (Ensure std benchmarks get tested.) - rust-lang#73305 (Disallow loading crates with non-ascii identifier name.) - rust-lang#73346 (Add rust specific features to print target features) - rust-lang#73362 (Test that bounds checks are elided when slice len is checked up-front) - rust-lang#73459 (Reduce pointer casts in Box::into_boxed_slice) - rust-lang#73464 (Document format correction) - rust-lang#73479 (Minor tweaks to liballoc) Failed merges: r? @ghost
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 rust-lang/rust#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. ```
This turns off external crate loading with non-ascii identifier names.
cc #55467.