Skip to content

rustfmt skip does not work on macros #2006

Closed
@gnzlbg

Description

@gnzlbg

from stdsimd; line width set to 79 characters:

#[cfg_attr(rustfmt, rustfmt_skip)]
// #[rustfmt_skip] // does not work either
macro_rules! __unstable_detect_feature {
    ("sse") => { $crate::vendor::__unstable_detect_feature($crate::vendor::__Feature::sse{})  };
}

shows:

("sse") => { $crate::vendor::__unstable_detect_feature($crate::vendor::__Feature::sse{})  };
   |                                                                                ^^^^^^^^^^^^^^^^^

error: line exceeded maximum width (maximum: 79, found: 85)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions