]> git.lizzy.rs Git - rust.git/commit
Backport: Do not touch module with #![rustfmt::skip] (4297)
authorYacin Tmimi <yacintmimi@gmail.com>
Wed, 24 Nov 2021 23:47:37 +0000 (18:47 -0500)
committerCaleb Cartwright <calebcartwright@users.noreply.github.com>
Wed, 8 Dec 2021 00:45:00 +0000 (18:45 -0600)
commitf40b1d9f1aeabca7a6e28d2d32d8458943111957
treedc21e867329a7ea83783cbc1009657fb5b4c25d3
parent8da837185714cefbb261e93e9846afb11c1dc60e
Backport: Do not touch module with #![rustfmt::skip] (4297)

Although the implementation is slightly different than the original PR,
the general idea is the same. After collecting all modules we want to
exclude formatting those that contain the #![rustfmt::skip] attribute.
src/formatting.rs
src/test/configuration_snippet.rs
src/test/mod_resolver.rs
src/visitor.rs
tests/mod-resolver/skip-files-issue-5065/foo.rs [new file with mode: 0644]
tests/mod-resolver/skip-files-issue-5065/foo/bar/baz.rs [new file with mode: 0644]
tests/mod-resolver/skip-files-issue-5065/main.rs [new file with mode: 0644]
tests/mod-resolver/skip-files-issue-5065/one.rs [new file with mode: 0644]
tests/target/skip/preserve_trailing_comment.rs [new file with mode: 0644]