Home
last modified time | relevance | path

Searched full:rustfmt (Results 1 – 25 of 92) sorted by relevance

1234

/third_party/rust/crates/syn/tests/repo/
Dmod.rs18 #[rustfmt::skip]
32 "src/tools/rustfmt/tests/source/issue_5721.rs",
33 "src/tools/rustfmt/tests/source/non-lifetime-binders.rs",
34 "src/tools/rustfmt/tests/target/issue_5721.rs",
35 "src/tools/rustfmt/tests/target/non-lifetime-binders.rs",
71 "src/tools/rustfmt/tests/target/negative-bounds.rs",
80 "src/tools/rustfmt/tests/source/trait.rs",
81 "src/tools/rustfmt/tests/target/trait.rs",
88 "src/tools/rustfmt/tests/source/issue_4257.rs",
89 "src/tools/rustfmt/tests/source/issue_4911.rs",
[all …]
/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/bindgen/bindgen-tests/tests/
Dtests.rs23 // Run `rustfmt` on the given source string and return a tuple of the formatted
24 // bindings, and rustfmt's stderr.
25 fn rustfmt(source: String) -> (String, String) { in rustfmt() function
29 if env::var_os("RUSTFMT").is_some() { in rustfmt()
33 let mut rustfmt = { in rustfmt() localVariable
35 p.args(["run", "nightly", "rustfmt", "--version"]); in rustfmt()
39 let have_working_rustfmt = rustfmt in rustfmt()
49 The latest `rustfmt` is required to run the `bindgen` test suite. Install in rustfmt()
50 `rustfmt` with: in rustfmt()
53 $ rustup component add rustfmt --toolchain nightly in rustfmt()
[all …]
Dtest-one.sh48 FLAGS="--rustfmt-bindings --with-derive-default --raw-line '' --raw-line '#![allow(dead_code, non_s…
59 rustup run nightly rustfmt "$BINDINGS" || true
83 rustup run nightly rustfmt "$EXPECTED" || true
/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/termcolor/.github/workflows/
Dci.yml62 rustfmt:
63 name: rustfmt
74 - name: Install rustfmt
75 run: rustup component add rustfmt
/third_party/rust/crates/cfg-if/.github/workflows/
Dmain.yml22 rustfmt:
23 name: Rustfmt
31 rustup component add rustfmt
32 - name: Run rustfmt
/third_party/rust/crates/bindgen/ci/
Dtest.sh78 # Need rustfmt to compare the test expectations.
80 …rust-lang.github.io/rustup-components-history/$(rustup target list --installed | tail -1)/rustfmt)"
82 rustup component add rustfmt --toolchain "$toolchain"
83 export RUSTFMT="$(rustup which --toolchain "$toolchain" rustfmt)"
/third_party/rust/crates/which-rs/.github/workflows/
Drust.yml7 # Run the `rustfmt` code formatter
8 rustfmt:
9 name: Rustfmt [Formatter]
21 components: rustfmt
/third_party/rust/crates/syn/tests/
Dtest_item.rs65 #[rustfmt::skip] in test_negative_impl()
108 #[rustfmt::skip] in test_negative_impl()
164 #[rustfmt::skip] in test_supertraits()
176 #[rustfmt::skip] in test_supertraits()
189 #[rustfmt::skip] in test_supertraits()
213 #[rustfmt::skip] in test_supertraits()
241 #[rustfmt::skip] in test_type_empty_bounds()
/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/either/.github/workflows/
Dci.yml46 name: Rustfmt and Clippy
55 components: rustfmt, clippy
57 - name: Rustfmt
/third_party/rust/crates/minimal-lexical/docs/
DDevelopment.md25 - Rustfmt
37 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/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/nom/.github/
DPULL_REQUEST_TEMPLATE.md23 This project follows a [code style](https://github.com/Geal/nom/blob/main/rustfmt.toml)
24 checked by [rustfmt][https://github.com/rust-lang-nursery/rustfmt].
/third_party/rust/crates/clap/.github/workflows/
Dci.yml16 needs: [test, check, docs, rustfmt, clippy, cffconvert]
150 rustfmt:
151 name: rustfmt
164 components: rustfmt
Drust-next.yml68 rustfmt:
69 name: rustfmt
86 components: rustfmt
/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/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/aho-corasick/.github/workflows/
Dci.yml95 rustfmt:
96 name: rustfmt
107 components: rustfmt
/third_party/rust/crates/bindgen/bindgen-tests/
DCargo.toml18 which-rustfmt = ["bindgen/which-rustfmt"]
/third_party/rust/crates/codespan/.github/workflows/
Dci.yml99 name: Rustfmt (${{ matrix.rust }})
102 - name: Install minimal ${{ matrix.rust }} with rustfmt
108 components: rustfmt
/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/log/.github/workflows/
Dmain.yml51 rustfmt:
52 name: Rustfmt
60 rustup component add rustfmt

1234