Skip to content

dep-info + -Z no-analysis no longer ignore extern crates #33231

Description

@SiegeLord

Compiling this code:

extern crate doesnt_exist;

fn main() {}

With:

rustc -Z no-analysis --emit dep-info -o test.d test.rs

Used to work (and still works with rust 1.7), but recently has started failing (circa rustc 1.10.0-nightly (bd93816 2016-04-25)) with this error:

test.rs:1:1: 1:27 error: can't find crate for `doesnt_exist` [E0463]
test.rs:1 extern crate doesnt_exist;
          ^~~~~~~~~~~~~~~~~~~~~~~~~~
error: aborting due to previous error

This makes that useful combination of flags no longer work. I suspect -Z no-analysis broke again.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions