Skip to content

Latest nightly not able to find extern crate rustc_mir. #88974

Description

@Lee-Janggun

The latest nightly is not able to find the compiler crate rustc_mir for some reason.

Code:

#![feature(rustc_private)]

extern crate rustc_mir;

fn main() {
}

Toolchain:

[toolchain]
channel = "nightly"
components = [ "rustc-dev", "llvm-tools-preview" ]

Platform: x86_64 Linux.

The above code fails to compile with cargo build, resulting in the following error message.

error[E0463]: can't find crate for `rustc_mir`
 --> src/main.rs:3:1
  |
3 | extern crate rustc_mir;
  | ^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
  |
  = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

The code compiles fine with nightly-2021-08-30, and after doing a manual search, I can confirm that problem occurs from nightly-2021-09-09. nightly-2021-09-08 works fine.

I do not know if other rustc crates suffer from the same problem. I used the above minimal example during search for ease.

I came across this bug when I was trying to compile this test case locally.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions