Skip to content

Support clippy-driver as rustc #539

@yaahc

Description

@yaahc

The Preface

There is some vague talk of maybe someday integrating clippy-driver into cargo build and cargo check rust-lang/cargo#7382, so I went and tried to test if we could just use clippy-driver as a drop in replacement for rustc under cargo build and sccache did not play nicely with it.

The Problem

sccache flat out errors out if clippy-driver is passed in the place of rustc

Screenshot from 2019-10-10 14-17-16

The Fix

@mystor suggested that someone fix it @

let rustc_vv = if filename.to_string_lossy().to_lowercase() == "rustc" {
to work with clippy-driver.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions