Skip to content

Warning directives aren't respected when in front of methods in impls #2647

Closed
@msullivan

Description

@msullivan

The following code shouldn't have any warnings, but does:

impl extensions for () {
    #[warn(no_while_true)]
    fn bar() { while true { } }
}

fn main() {}

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions