-
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
clippy_lints is breaking the stage1 build #45357
Comments
cc #45177 |
@pnkfelix Could you show your |
@kennytm yeah I just realized I should add that info. I added the command invocation to the transcript. There is no The relevant part of the command invocation, I think, is: |
ah so this might be specific to stage 1. I'll add that to the title |
This isn't a clippy issue, this is a bug with rustc/cargo wrt dylibs that's been around for ages. It's only cropping up now more because custom derives are a thing (but it always used to be a problem with plugins) |
This same issue breaks the internals rustdoc build. |
@Manishearth its a clippy issue if clippy being added to our tree breaks the work flow for stage1 builds. :( |
Yes, I mean that this isn't a bug that can be fixed in clippy; it's a longstanding bug with dylib loading with rustc. |
So this is a rustbuild bug - we should just avoid building clippy in stage1. Or we should ship a blessed version of |
Should the |
I thought Lines 405 to 418 in f6d7514
already took care of that, since that is copy pasted from cargo. I'm not sure why it isn't working as advertised... |
Clippy, Cargo, and Rustdoc currently must be built with a stage 2 compiler due to how proc macros work. I don't think there's anything rustbuild can do in particular to change that, other than not building them in earlier stages (which does seem like a good idea). |
Can we also exclude stage 1 from the doc build while we're at it? The doc build has been broken for months because cssparser uses a proc macro. |
issue rust-lang#45357 don't build clippy stage 1 rust-lang#45357 Wasn't sure top_stage was the right thing, but seemed to go ahead building clippy stage 2.
Atop commit f6d7514 , I am trying to build Rust. I have deleted my
build/
subdirectory, and I have even attempted to build from the root directory (rust.git
), even though I usually put specificconfig.toml
into subdirectories (to maintain separate debug and release builds)...But on both Linux and Mac OS X, I am getting the same basic end result when I try to build:
(On Mac OS X it instead complains:
but I interpret that as essentially the same error.
The text was updated successfully, but these errors were encountered: