Skip to content

Lint control attributes (allow/deny/etc) have no effect on lifetime and const parameters #61552

Open
@petrochenkov

Description

@petrochenkov
fn f<#[allow(warnings)] foo>() {} // warning: type parameter `foo` should have an upper camel case name

Expected behavior - no warning, actual behavior - warning.

cc #61238, which is a similar issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-attributesArea: Attributes (`#[…]`, `#![…]`)A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.C-bugCategory: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions