Skip to content

Test harness inserts unstable warnings #20823

Description

@seanmonstar

With a file like:

pub struct Foo;
impl Copy for Foo {}

And then running rustc --test test.rs, these warnings are inserted:

sean@grunt:~/code$ rustc --test test.rs
<command line option> warning: use of unstable item: will be replaced by slice syntax, #[warn(unstable)] on by default
test.rs:1 pub struct Foo;
          ^
<command line option> warning: use of unstable item, #[warn(unstable)] on by default
test.rs:1 pub struct Foo;
          ^
<command line option> warning: use of unstable item, #[warn(unstable)] on by default
test.rs:1 pub struct Foo;
          ^

cc @alexcrichton @aturon

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