Skip to content

Test harness inserts unstable warnings #20823

Closed
@seanmonstar

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

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