Skip to content

Clippy fails as subcommand on Windows when rustc installed via installer #2142

Closed
@ark-

Description

@ark-

Installed from here: https://static.rust-lang.org/dist/rust-nightly-x86_64-pc-windows-msvc.msi, --version gives:

rustc 1.22.0-nightly (29ed49fb0 2017-10-15)

The error:

cargo clippy
   Compiling myproject v1.0.0 (file:///D:/myproject)
error[E0463]: can't find crate for `std`

error: aborting due to previous error

thread 'rustc' panicked at 'Box<Any>', src\librustc_errors\lib.rs:525:8
note: Run with `RUST_BACKTRACE=1` for a backtrace.
thread 'main' panicked at 'rustc_thread failed: Any', src\libcore\result.rs:906:4
error: Could not compile `myproject`.

To learn more, run the command again with --verbose.

I have tried setting SYSROOT to the ...\rust-master\src and ...\rust-master\src\librustc where ...\rust-master is cloned from the rust repo (https://github.com/rust-lang/rust) as suggested in the README. This changes nothing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions