-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
x.py clippy fails with E0277 and E0658 #79244
Comments
@rustbot modify labels to +A-clippy and +A-rustbuild. |
@Nicholas-Baron you need to update your version of beta. This is the error I get, which is an internal error in clippy:
|
My version of clippy (from |
Whoops, I was using the wrong clippy, sorry. |
@jyn514 I ran
In the end, whether running either version documented here, Update: checked the version number ( |
@Nicholas-Baron I am unlikely to have time to look into this in the near future. I vaguely remember there being an issue open for the clippy ICE, but feel free to open one (in the clippy repo, not here) if there isn't. |
@jyn514 Set up an issue on the clippy end. Closing as it will probably be handled by clippy. |
@jyn514 So the issue is resolved on their end. (See pull request 6304) |
@Nicholas-Baron |
Hmm, and that fails with its own error:
which looks like #79560. |
So, when developing |
x.py clippy is not really supported either way - it's "best-effort" for both. I used nightly because beta panics, that's the bug you pointed out in #79244 (comment). |
So In the meantime, I will switch to |
@Nicholas-Baron no need to report an error, there's already an issue open: #79560 |
and yeah, I don't think anyone even tried to use clippy before you opened an issue 😆 you saw I had to add a whole new part of bootstrap just for it. |
@jyn514 I just want Rust tools to work in the Rust compiler, that is all. Also, the option was there. If you give people a button, they will push it. |
@Nicholas-Baron in order to use clippy on rustc, I found this recipe to work in most of the cases (trying to deal with beta-clippy or outdated nightly clippy is just too much pain imo) |
@matthiaskrgr Even if it works, the recipe seems a bit long to get a simple
To me, if a tool provides an option, that option must be maintained and "just work". All of |
@Nicholas-Baron the alternative is I can remove the option 🤷 all the work in this repo is on a volunteer basis and we just don't have the manpower to make everything work out of the box. If you want help fixing the issues I'm happy to give you suggestions, but complaining about it doesn't help anything. |
Trying to run
./x.py clippy
using the beta toolchain's clippy results in ~32 errors.Raw output
There are a bunch of
attribute should be applied to a macro
errors, then aE0658
(impl Trait
not allowed onconst fn
s), and finally 3E0277
(the size ofSelf
is not known at compile time). All seem to come out oflibrary/core
.The text was updated successfully, but these errors were encountered: