Skip to content

Warning false positive with #[derive(Hash)] in nightly #32292

Closed

Description

The following unused_variables warning just appeared in Clippy with the last nightly:

% cat a.rs 
#[derive(Hash)]
struct Foo;

fn main() { let _ = Foo; }
% rustc a.rs 
a.rs:1:10: 1:14 warning: unused variable: `arg_0`, #[warn(unused_variables)] on by default
a.rs:1 #[derive(Hash)]
                ^~~~
a.rs:1:10: 1:14 note: in this expansion of #[derive_Hash] (defined in a.rs)
% rustc --version
rustc 1.9.0-nightly (c66d2380a 2016-03-15)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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