Home
last modified time | relevance | path

Searched refs:rustfmt (Results 1 – 25 of 55) sorted by relevance

123

/third_party/rust/crates/bindgen/book/src/
Dcode-formatting.md3 `bindgen` uses `rustfmt` to format the emitted bindings. This section describes
4 how to adjust the `rustfmt` behavior when being used from `bindgen`.
6 ## Passing a `rustfmt.toml` configuration file
8 `rustfmt` should automatically use any `rustfmt.toml` file that is present in
11 directory you can use the `--rustfmt-configuration-file` flag or the
15 ## Using a nightly release of `rustfmt`
17 If the `rustfmt` command does not correspond to a nightly release of `rustfmt`
33 $ rustup which rustfmt --toolchain=nightly
44 .args(["which", "rustfmt", "--toolchain", "nightly"])
55 String::from_utf8(output.stdout).expect("The `rustfmt` path is not valid `utf-8`");
Dfaq.md117 `rustfmt.toml` file with the following contents:
123 Then, you have set up bindgen so it passes this file to `rustfmt`. Given that
125 [unstable](https://github.com/rust-lang/rustfmt/issues/3351), you also have to
126 set up bindgen to use a `nightly` release of `rustfmt`. Please check the [code
/third_party/rust/crates/syn/tests/
Dtest_item.rs64 #[rustfmt::skip] in test_negative_impl()
109 #[rustfmt::skip] in test_negative_impl()
167 #[rustfmt::skip] in test_supertraits()
179 #[rustfmt::skip] in test_supertraits()
192 #[rustfmt::skip] in test_supertraits()
218 #[rustfmt::skip] in test_supertraits()
247 #[rustfmt::skip] in test_type_empty_bounds()
Dtest_ty.rs292 #[rustfmt::skip] in test_trailing_plus()
312 #[rustfmt::skip] in test_trailing_plus()
333 #[rustfmt::skip] in test_trailing_plus()
Dtest_expr.rs53 #[rustfmt::skip]
287 #[rustfmt::skip] // rustfmt bug: https://github.com/rust-lang/rustfmt/issues/4808 in test_closure_vs_rangefull()
/third_party/rust/crates/bindgen/bindgen-tests/tests/
Dtests.rs25 fn rustfmt(source: String) -> (String, String) { in rustfmt() function
33 let mut rustfmt = { in rustfmt() localVariable
39 let have_working_rustfmt = rustfmt in rustfmt()
253 rustfmt(actual) in compare_generated_header()
259 let (expected, rustfmt_stderr) = rustfmt(expected); in compare_generated_header()
454 let (actual, stderr) = rustfmt(actual); in test_clang_env_args()
457 let (expected, _) = rustfmt( in test_clang_env_args()
481 let (actual, stderr) = rustfmt(actual); in test_header_contents()
484 let (expected, _) = rustfmt( in test_header_contents()
508 let (actual, stderr) = rustfmt(actual); in test_multiple_header_calls_in_builder()
[all …]
Dtest-one.sh59 rustup run nightly rustfmt "$BINDINGS" || true
83 rustup run nightly rustfmt "$EXPECTED" || true
/third_party/rust/crates/libc/ci/
Dstyle.sh7 rustup toolchain install nightly -c rustfmt --allow-downgrade
9 command -v rustfmt
10 rustfmt -V
/third_party/rust/crates/bindgen/bindgen-cli/
DCargo.toml31 default = ["logging", "runtime", "which-rustfmt"]
35 # Dynamically discover a `rustfmt` binary using the `which` crate
36 which-rustfmt = ["bindgen/which-rustfmt"]
/third_party/rust/crates/syn/src/
Dlib.rs580 #[rustfmt::skip]
677 #[rustfmt::skip]
764 #[rustfmt::skip]
768 #[rustfmt::skip]
772 #[rustfmt::skip]
776 #[rustfmt::skip]
780 #[rustfmt::skip]
/third_party/rust/crates/atty/
Drustfmt.toml1 # https://github.com/rust-lang/rustfmt/blob/master/Configurations.md#fn_args_layout
3 # https://github.com/rust-lang/rustfmt/blob/master/Configurations.md#merge_imports
/third_party/rust/crates/bindgen/bindgen/
DCargo.toml44 default = ["logging", "runtime", "which-rustfmt"]
48 # Dynamically discover a `rustfmt` binary using the `which` crate
49 which-rustfmt = ["which"]
/third_party/rust/crates/bindgen/bindgen-tests/
DCargo.toml18 which-rustfmt = ["bindgen/which-rustfmt"]
/third_party/rust/crates/nom/benchmarks/benches/
Dhttp.rs1 #![cfg_attr(rustfmt, rustfmt_skip)]
9 #[cfg_attr(rustfmt, rustfmt_skip)]
23 #[cfg_attr(rustfmt, rustfmt_skip)]
/third_party/rust/crates/nom/tests/
Dmp4.rs29 #[cfg_attr(rustfmt, rustfmt_skip)]
37 #[cfg_attr(rustfmt, rustfmt_skip)]
67 #[cfg_attr(rustfmt, rustfmt_skip)]
97 #[cfg_attr(rustfmt, rustfmt_skip)]
149 #[cfg_attr(rustfmt, rustfmt_skip)]
/third_party/rust/crates/rustix/src/backend/linux_raw/net/
Dtypes.rs15 #[rustfmt::skip]
54 #[rustfmt::skip]
151 #[rustfmt::skip]
/third_party/rust/crates/nom/
DCONTRIBUTING.md68 The normal rust coding style is checked by [rustfmt][cs1].
72 use the following command to run rustfmt: `cargo +stable fmt`
73 [cs1]: https://github.com/rust-lang-nursery/rustfmt
/third_party/rust/crates/syn/tests/repo/
Dmod.rs15 #[rustfmt::skip]
101 #[rustfmt::skip]
/third_party/rust/crates/minimal-lexical/docs/
DDevelopment.md37 rustup +nightly component add rustfmt
55 …ithub.com/Alexhuszagh/minimal_lexical/blob/main/scripts/check.sh): Check rustfmt and clippy withou…
64 # Ensure all rustfmt and clippy checks pass.
/third_party/rust/crates/unicode-ident/tests/tables/
Dmod.rs4 #[rustfmt::skip]
/third_party/rust/crates/io-lifetimes/
D.rustfmt.toml1 # This file tells tools we use rustfmt. We use the default settings.
/third_party/rust/crates/linux-raw-sys/
D.rustfmt.toml1 # This file tells tools we use rustfmt. We use the default settings.
/third_party/rust/crates/rustix/
D.rustfmt.toml1 # This file tells tools we use rustfmt. We use the default settings.
/third_party/rust/crates/unicode-ident/tests/trie/
Dmod.rs4 #[rustfmt::skip]
/third_party/rust/crates/linux-raw-sys/gen/
DCargo.toml8 bindgen = { version = "=0.59.2", default-features = false, features = ["which-rustfmt"] }

123