Skip to content

Commit a710e50

Browse files
authored
Use prettyplease to format expectations (rust-lang#2536)
This PR replaces `rustfmt` by `prettyplease` as the used formatter for the expectation tests. This was done because we currently rely on the nightly version of `rustfmt` which recently broke our test suite by changing how code in macros is formatted. The `prettyplease` crate does not have that issue because we are using a specific version in the Cargo manifest.
1 parent 948d0d4 commit a710e50

File tree

597 files changed

+10185
-22410
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

597 files changed

+10185
-22410
lines changed

Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bindgen-tests/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ diff = "0.1"
1010
shlex = "1"
1111
clap = { version = "4", features = ["derive"] }
1212
clap_complete = "4"
13+
prettyplease = { version = "0.2.0" }
14+
syn = { version = "2.0" }
1315
tempfile = "3"
1416

1517
[features]
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# disable rustfmt for this crate so running `cargo fmt` doesn't affect the expected binding files
2+
disable_all_formatting = true

bindgen-tests/tests/expectations/tests/16-byte-alignment.rs

Lines changed: 66 additions & 181 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)