Skip to content

New style lint: Warn for non_camel_case_types of ty capture in macro_rules #4940

Open
@tesuji

Description

@tesuji

For example:

macro_rules! foo {
    ($int_ty:ty) => {
//    ^^^^^^ help: convert the identifier to upper camel case: `IntTy`
        <$int_ty>::max_value()
    };
}

const BAR: u32 = foo!(u32);

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintArea: New lintsL-styleLint: Belongs in the style lint groupT-macrosType: Issues with macros and macro expansion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions