-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Move cargo-clippy into cargo #3837
Copy link
Copy link
Closed
rust-lang/cargo
#6759Labels
C-tracking-issueCategory: Tracking IssueCategory: Tracking IssueT-cargoType: cargo relatedType: cargo related
Description
Activity
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: Tracking IssueCategory: Tracking IssueT-cargoType: cargo relatedType: cargo related
See rust-lang/cargo#6664 (comment) for some context.
Currently
cargo clippyis a thin wrapper script around Cargo that invokescargo checkwith a RUSTC_WRAPPER: https://github.com/rust-lang/rust-clippy/blob/8dfabdf11c6cdaffd7c6e6552a6ead8d52c49b10/src/main.rsIt does some additional hacks to support the clippy dogfood test and passing down arguments.
We should move this into cargo proper, like rustc: Ideally it's just a copy of
cargo checkthat sets a different rustc executable (temporarily can be done by overriding RUSTC_WRAPPER, but the better solution probably involves modifyingconfig.rustc()https://github.com/rust-lang/cargo/blob/716b02cb4c7b75ce435eb06defa25bc2d725909c/src/cargo/util/config.rs#L194-L215Steps:
clippy-driver#4173Perhaps make-Wlintnamework as a shortcut for-Wclippy::lintname