-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
E-needs-testCall for participation: writing testsCall for participation: writing testsT-cargoType: cargo relatedType: cargo related
Description
I'm trying to use clippy-driver in a non-cargo build system (Buck), by using it as a drop-in replacement for rustc. There are a few ways in which this could be improved:
clippy-driverlooks to see if its doing a check build by explicitly looking for the string--emit=dep-info,metadata, which is the string that Cargo uses. This is brittle - for example, Buck's#checkbuilds don't usedep-info. It should just check for the presence ofmetadata.- It also relies on
CARGO_MANIFEST_DIRbeing set to find.?clippy.toml, and panics if it isn't. It should at least fall back to a default dir like.. - It relies on
SYSROOTbeing set to find the compiler - it would be nice if there a way to deriveSYSROOTfrom the path of the executable and inhibit the search for a rustup installation.
Metadata
Metadata
Assignees
Labels
E-needs-testCall for participation: writing testsCall for participation: writing testsT-cargoType: cargo relatedType: cargo related