Skip to content
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

Rust 1.45.0 and above no longer install clippy #74431

Closed
Keruspe opened this issue Jul 17, 2020 · 7 comments · Fixed by #74457
Closed

Rust 1.45.0 and above no longer install clippy #74431

Keruspe opened this issue Jul 17, 2020 · 7 comments · Fixed by #74457
Labels
C-bug Category: This is a bug. regression-from-stable-to-stable Performance or correctness regression from one stable version to another.

Comments

@Keruspe
Copy link
Contributor

Keruspe commented Jul 17, 2020

When updating from 1.44.1 to 1.45.0, clippy-driver and cargo-clippy are no longer installed by ./x.py install.
miri and cargo-miri weren't previously installed but they are now, and the opposite is true for clippy-driver and cargo-clippy

@Keruspe Keruspe added the C-bug Category: This is a bug. label Jul 17, 2020
@Keruspe
Copy link
Contributor Author

Keruspe commented Jul 17, 2020

Currently digging.

Might be related:

error[E0635]: unknown feature `const_transmute`                                                                                                                                                                                                
  --> /var/cache/paludis/distfiles/cargo-home/registry/src/github.com-1ecc6299db9ec823/rustc-ap-rustc_ast-664.0.0/lib.rs:13:12                                                                                                                 
   |                                                                                                                                                                                                                                           
13 | #![feature(const_transmute)]                                                                                                                                                                                                              
   |            ^^^^^^^^^^^^^^^       

@Keruspe
Copy link
Contributor Author

Keruspe commented Jul 17, 2020

This was unrelated.

Turns out I get Dist clippy stage2 (x86_64-unknown-linux-gnu) but then skipping Install clippy stage2 (x86_64-unknown-linux-gnu)

@Keruspe
Copy link
Contributor Author

Keruspe commented Jul 17, 2020

Ok, before we basically has if ensure().is_some() || Self::should_install and now we only have Self::should_install which defaults to false if tools isn't set in the configuration, even if extended is set to true

@Keruspe
Copy link
Contributor Author

Keruspe commented Jul 17, 2020

I think either should_install should default to true if tools is empty (like should_build) or the condition for all optional tools should be ensure().is_some() && Self::should_install instead of ||

As of now, if an optional tool builds fine, it gets installed no matter what the tools config contain, but as soon as it's no longer optional (like clippy in 1.45.0) it doesn't get installed anymore unless its name is explicitely listed in the tools config. This is a really weird behaviour

@thomasjfox
Copy link

Fedora added this to the configure line for the 1.45.0 upgrade:

--tools=analysis,cargo,clippy,rls,rustfmt,src

That seems to be a workaround for the moment.

@Keruspe
Copy link
Contributor Author

Keruspe commented Jul 17, 2020

That's what I ended up doing here too.

The commented value in config.toml.example doesn't reflect the real default though

@heftig
Copy link

heftig commented Jul 17, 2020

Manishearth added a commit to Manishearth/rust that referenced this issue Jul 18, 2020
rustbuild: drop tool::should_install

Always install when the build succeeds

Fixes rust-lang#74431
Manishearth added a commit to Manishearth/rust that referenced this issue Jul 18, 2020
rustbuild: drop tool::should_install

Always install when the build succeeds

Fixes rust-lang#74431
Manishearth added a commit to Manishearth/rust that referenced this issue Jul 18, 2020
rustbuild: drop tool::should_install

Always install when the build succeeds

Fixes rust-lang#74431
@bors bors closed this as completed in 4adb13c Jul 18, 2020
@Mark-Simulacrum Mark-Simulacrum added the regression-from-stable-to-stable Performance or correctness regression from one stable version to another. label Jul 21, 2020
@rustbot rustbot added the I-prioritize Issue: Indicates that prioritization has been requested for this issue. label Jul 21, 2020
@Mark-Simulacrum Mark-Simulacrum removed the I-prioritize Issue: Indicates that prioritization has been requested for this issue. label Jul 21, 2020
Mark-Simulacrum pushed a commit to Mark-Simulacrum/rust that referenced this issue Jul 22, 2020
Always install when the build succeeds

Fixes rust-lang#74431

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
Mark-Simulacrum pushed a commit to Mark-Simulacrum/rust that referenced this issue Aug 7, 2020
Always install when the build succeeds

Fixes rust-lang#74431

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. regression-from-stable-to-stable Performance or correctness regression from one stable version to another.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants