Skip to content

allow are not applied #4380

@Villosse

Description

@Villosse

Summary

While trying to do a code with #[allow(unused_variables)] i saw that it shows the warning message even with this line.

Reproducer

I tried this code:

#[allow(unused_variables)]
pub fn main () {
    let a = 4;
    return ()
}

Does the code make use of any (1.49) nightly feature ?

  • Nightly

Godbolt link

https://godbolt.org/z/zhW6M4Yv9

Actual behavior

The current behavior is shows unused variables

Expected behavior

I expected to see is not seeing anything

GCC Version

f0558a0

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