-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Give a better error for cargo check
on libstd itself
#79021
Conversation
Before: hundreds of errors about `Sized` not being implemented for types in `core` After: ``` $ cargo check error: invalid channel name 'use x.py instead: https://rustc-dev-guide.rust-lang.org/building/how-to-build-and-run.html' in '/home/joshua/rustc/rust-toolchain' error: caused by: invalid toolchain name: 'use x.py instead: https://rustc-dev-guide.rust-lang.org/building/how-to-build-and-run.html' ```
err, I'm not actually sure that's true - |
Question: could we just have a |
@oli-obk that breaks rustfmt: #76419 (comment). But I would like to do that eventually. |
Ah, thanks for the link! Yea, too bad rustfmt on beta doesn't contain what we need and can just be RUST_BOOTSTRAPped |
I would prefer not to do this. Not all commands go through x.py. Things like |
Ugh, yeah you're right this breaks I guess we're back to build scripts? I don't know a way to tell |
Yes, I agree that breaking cargo tree and similar is an unfortunate consequence. I think we should not do this in that case, sorry. |
Or, Abusing
rust-toolchain
For Fun and Profit.Before: hundreds of errors about
Sized
not being implemented for types incore
After:
r? @Mark-Simulacrum
Closes #76446, fixes #76444.
Unlike #76446, this requires no changes to people trying to build the standard library out-of-tree, and also works for
cargo fmt
.