]> git.lizzy.rs Git - rust.git/commit
tidy: Accommodate rustfmt's preferred layout of stability attributes
authorDavid Tolnay <dtolnay@gmail.com>
Sun, 24 Nov 2019 20:44:49 +0000 (12:44 -0800)
committerDavid Tolnay <dtolnay@gmail.com>
Sun, 24 Nov 2019 20:52:50 +0000 (12:52 -0800)
commitfdcf854bb9b03ff9f8c60c824f0c6709a38269d0
tree9c3355c48280793918653d22ac2e12d22b1f2054
parent5a1d028d4c8fc15473dc10473c38df162daa7b41
tidy: Accommodate rustfmt's preferred layout of stability attributes

Previously tidy would require that the `feature = "name_of_feature"`
part of the stability attribute was on the same line as the `#[stable(`
/ `#[unstable(` opening part of the attribute, and that `)]` was on the
same line as the last key-value pair.

That didn't work with rustfmt's preferred layout of long attributes,
which is like:

    #[unstable(
        feature = "c_variadic",
        reason = "the `c_variadic` feature has not been properly tested on \
                  all supported platforms",
        issue = "44930"
    )]
src/tools/tidy/src/features.rs