Home
last modified time | relevance | path

Searched +full:rustfmt +full:- +full:clippy (Results 1 – 25 of 31) sorted by relevance

12

/third_party/rust/crates/syn/tests/repo/
Dmod.rs1 #![allow(clippy::manual_assert)]
15 #[rustfmt::skip]
19 "src/test/ui/rfc-2632-const-trait-impl/syntax.rs",
21 // Compile-fail expr parameter in const generic position: f::<1 + 2>()
22 "src/test/ui/const-generics/early/closing-args-token.rs",
23 "src/test/ui/const-generics/early/const-expression-parameter.rs",
26 "src/test/ui/type-alias-impl-trait/generic_type_does_not_live_long_enough.rs",
29 "src/test/ui/issues/issue-13105.rs",
30 "src/test/ui/issues/issue-13775.rs",
31 "src/test/ui/issues/issue-34074.rs",
[all …]
/third_party/rust/crates/pin-project-lite/tools/
Dci.sh2 set -euo pipefail
10 # Note: This script requires nightly Rust, rustfmt, clippy, and cargo-expand
22 if [[ "${1:-}" == "+"* ]]; then
27 if ! cargo "${toolchain}" -V &>/dev/null; then
28 rustup toolchain install "${toolchain#+}" --no-self-update --profile minimal
31 if [[ "${toolchain:-+nightly}" != "+nightly"* ]]; then
34 if ! rustup "${toolchain}" component add rustfmt &>/dev/null \
35 || ! cargo expand -V &>/dev/null; then
36 warn "ci.sh requires rustfmt and cargo-expand to run all tests"
39 # Run rustfmt.
[all …]
/third_party/rust/crates/which-rs/.github/workflows/
Drust.yml7 # Run the `rustfmt` code formatter
8 rustfmt:
9 name: Rustfmt [Formatter]
10 runs-on: ubuntu-latest
12 - name: Setup | Checkout
15 - name: Setup | Rust
16 uses: actions-rs/toolchain@v1
21 components: rustfmt
23 - name: Build | Format
24 run: cargo fmt --all -- --check
[all …]
/third_party/rust/crates/either/.github/workflows/
Dci.yml11 runs-on: ubuntu-latest
13 fail-fast: false
16 - 1.36.0 # MSRV
17 - stable
18 - beta
19 - nightly
21 - ""
22 - "serde"
25 - name: Checkout
28 - name: Set up Rust
[all …]
/third_party/rust/crates/minimal-lexical/docs/
DDevelopment.md13 … made **public** to separate the tests from the implementation, although non-documented members is…
24 - Clippy
25 - Rustfmt
26 - Miri
27 - Valgrind
28 - Tarpaulin
29 - Fuzz
30 - Count
36 rustup +nightly component add clippy
37 rustup +nightly component add rustfmt
[all …]
/third_party/rust/crates/clap/.github/workflows/
Dci.yml7 - cron: '3 3 3 * *'
16 needs: [test, check, docs, rustfmt, clippy]
17 runs-on: ubuntu-latest
19 - name: Done
27 - build: linux
28 os: ubuntu-latest
31 - build: windows
32 os: windows-latest
35 - build: mac
36 os: macos-latest
[all …]
Drust-next.yml1 name: rust-next
4 - cron: '3 3 3 * *'
15 - build: stable
16 os: ubuntu-latest
19 - build: linux
20 os: ubuntu-latest
23 - build: windows
24 os: windows-latest
27 - build: mac
28 os: macos-latest
[all …]
/third_party/rust/crates/bindgen/.github/workflows/
Dbindgen.yml6 - main
9 - main
12 rustfmt-clippy:
13 runs-on: ubuntu-latest
16 - uses: actions/checkout@v3
18 - name: Install stable
19 uses: actions-rs/toolchain@v1
22 # TODO: Should ideally be stable, but we use some nightly-only
26 components: rustfmt, clippy
28 - name: Run rustfmt
[all …]
/third_party/rust/crates/signal-hook/.github/workflows/
Dtest.yaml14 fail-fast: false
17 - ubuntu-latest
18 - macos-latest
19 - windows-latest
21 - stable
22 - beta
23 - nightly
25 - 1.36.0
27 - 1.40.0
29 runs-on: ${{ matrix.os }}
[all …]
/third_party/rust/crates/syn/src/
Dlib.rs1 …hub]](https://github.com/dtolnay/syn)&ensp;[![crates-io]](https://crates.io/crates/syn)&ensp;[![do…
3 //! [github]: https://img.shields.io/badge/github-8da0cb?style=for-the-badge&labelColor=555555&logo…
4 //! [crates-io]: https://img.shields.io/badge/crates.io-fc8d62?style=for-the-badge&labelColor=55555…
5 //! [docs-rs]: https://img.shields.io/badge/docs.rs-66c2a5?style=for-the-badge&labelColor=555555&lo…
15 //! - **Data structures** — Syn provides a complete syntax tree that can
21 //! - **Derives** — Of particular interest to derive macros is
24 //! derive implementations of a user-defined trait.
26 //! - **Parsing** — Parsing in Syn is built around [parser functions] with the
27 //! signature `fn(ParseStream) -> Result<T>`. Every syntax tree node defined
32 //! - **Location information** — Every token parsed by Syn is associated with a
[all …]
/third_party/rust/crates/pin-project-lite/.github/workflows/
Dci.yml10 - main
11 - dev
12 - staging
13 - v[0-9]+.[0-9]+
15 - cron: '0 1 * * *'
23 RUSTDOCFLAGS: -D warnings
24 RUSTFLAGS: -D warnings
34 fail-fast: false
37 - 1.37
38 - stable
[all …]
/third_party/rust/crates/heck/.github/workflows/
Drust.yml11 runs-on: ubuntu-latest
14 - uses: actions/checkout@v2
16 - uses: actions-rs/toolchain@v1
21 - name: Build default
22 uses: actions-rs/cargo@v1
25 - name: Build with unicode segmentation on
26 uses: actions-rs/cargo@v1
28 args: --features unicode
31 - uses: actions-rs/toolchain@v1
36 components: rustfmt, clippy
[all …]
/third_party/rust/crates/env_logger/.github/workflows/
Dci.yml6 - "**.rs"
7 - "Cargo.toml"
8 - "Cargo.lock"
13 runs-on: ubuntu-latest
15 - name: Checkout sources
18 - name: Install Rust toolchain
19 uses: actions-rs/toolchain@v1
24 components: rustfmt
26 - name: Check formatting
27 uses: actions-rs/cargo@v1
[all …]
/third_party/rust/crates/minimal-lexical/.github/workflows/
DFeatures.yml11 runs-on: ubuntu-latest
13 fail-fast: true
15 - uses: actions/checkout@v2
16 - name: Install latest nightly
17 uses: actions-rs/toolchain@v1
21 components: rustfmt, clippy
22 - run: ci/test.sh
23 - run: NIGHTLY=1 NO_STD=1 ci/test.sh
DSimple.yml12 runs-on: ubuntu-latest
14 fail-fast: false
18 - uses: actions/checkout@v2
21 - uses: dtolnay/rust-toolchain@master
24 - run: cargo check
25 - run: cargo test
26 - run: cargo test --features=compact
30 runs-on: ubuntu-latest
32 fail-fast: true
34 - uses: actions/checkout@v2
[all …]
/third_party/rust/crates/minimal-lexical/scripts/
Dhooks.sh4 set -e
11 echo 'echo "Running rustfmt and clippy checks."' > .git/hooks/pre-commit
12 echo "scripts/check.sh" >> .git/hooks/pre-commit
13 echo 'echo "Running linter checks."' > .git/hooks/pre-commit
14 echo 'RUSTFLAGS="--deny warnings" cargo +nightly build --features=lint' >> .git/hooks/pre-commit
15 chmod +x .git/hooks/pre-commit
/third_party/rust/crates/syn/tests/debug/
Dmod.rs2 clippy::no_effect_underscore_binding,
3 clippy::too_many_lines,
4 clippy::used_underscore_binding
7 #[rustfmt::skip]
23 pub fn Lite<T: ?Sized>(value: &T) -> &Lite<T> { in Lite()
30 fn deref(&self) -> &Self::Target { in deref()
36 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt()
42 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt()
48 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt()
54 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt()
[all …]
/third_party/rust/crates/tracing/tracing-attributes/tests/
Dasync_fn.rs9 async fn test_async_fn(polls: usize) -> Result<(), ()> { in test_async_fn()
16 // instrumented async fn (see https://github.com/tokio-rs/tracing/issues/1615)
19 async fn test_ret_impl_trait(n: i32) -> Result<impl Iterator<Item = i32>, ()> { in test_ret_impl_trait()
25 // instrumented async fn (see https://github.com/tokio-rs/tracing/issues/1615)
28 async fn test_ret_impl_trait_err(n: i32) -> Result<impl Iterator<Item = i32>, &'static str> { in test_ret_impl_trait_err()
36 // attributes (https://github.com/tokio-rs/tracing/issues/2294).
44 // Reproduces https://github.com/tokio-rs/tracing/issues/1613
46 // LOAD-BEARING `#[rustfmt::skip]`! This is necessary to reproduce the bug;
47 // with the rustfmt-generated formatting, the lint will not be triggered!
48 #[rustfmt::skip]
[all …]
/third_party/rust/crates/cxx/.devcontainer/
Dbuild.Dockerfile3 RUN apt-get update \
5 && apt-get -y install --no-install-recommends openjdk-11-jdk lld \
7 && rustup component add rust-analyzer-preview rustfmt clippy 2>&1 \
8 …&& wget -q -O bin/install-bazel https://github.com/bazelbuild/bazel/releases/download/4.0.0/bazel-
9 …&& wget -q -O bin/buck https://jitpack.io/com/github/facebook/buck/a5f0342ae3/buck-a5f0342ae3-java…
10 …&& wget -q -O bin/buildifier https://github.com/bazelbuild/buildtools/releases/latest/download/bui…
11 …&& wget -q -O tmp/watchman.zip https://github.com/facebook/watchman/releases/download/v2020.09.21.…
12 && chmod +x bin/install-bazel bin/buck bin/buildifier \
13 && bin/install-bazel \
14 && unzip tmp/watchman.zip -d tmp \
[all …]
/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)]
24 #[cfg_attr(feature = "cargo-clippy", allow(match_same_arms))]
25 fn is_token(c: u8) -> bool { in is_token()
51 fn not_line_ending(c: u8) -> bool { in not_line_ending()
55 fn is_space(c: u8) -> bool { in is_space()
59 fn is_not_space(c: u8) -> bool { in is_not_space()
62 fn is_horizontal_space(c: u8) -> bool { in is_horizontal_space()
66 fn is_version(c: u8) -> bool { in is_version()
[all …]
/third_party/rust/crates/memoffset/.github/workflows/
Dci.yml8 runs-on: ubuntu-latest
12 - stable
13 - beta
14 - nightly
16 - uses: actions/checkout@v2
17 - uses: actions-rs/toolchain@v1
21 - name: Run cargo test
24 test-msrv:
26 runs-on: ubuntu-latest
30 - 1.19.0 # Oldest supported (first version with numeric fields in struct patterns)
[all …]
/third_party/rust/crates/nix/
D.cirrus.yml8 RUSTFLAGS: -D warnings
9 RUSTDOCFLAGS: -D warnings
18 - . $HOME/.cargo/env || true
19 - $TOOL +$TOOLCHAIN -Vv
20 - rustc +$TOOLCHAIN -Vv
21 - $TOOL +$TOOLCHAIN $BUILD $ZFLAGS --target $TARGET --all-targets
22 - $TOOL +$TOOLCHAIN doc $ZFLAGS --no-deps --target $TARGET
23 - $TOOL +$TOOLCHAIN clippy $ZFLAGS --target $TARGET --all-targets -- -D warnings
24 - if [ -z "$NOHACK" ]; then mkdir -p $HOME/.cargo/bin; export PATH=$HOME/.cargo/bin:$PATH; fi
25- if [ -z "$NOHACK" ]; then curl -LsSf https://github.com/taiki-e/cargo-hack/releases/latest/downl…
[all …]
/third_party/rust/crates/tracing/.github/workflows/
DCI.yml6 - master
7 - "v0.1.x"
13 # Incremental compilation is useful as part of an edit-build-test-edit cycle,
20 # See https://matklad.github.io/2021/09/04/fast-rust-builds.html#ci-workflow
40 runs-on: ubuntu-latest
42 - uses: actions/checkout@v3
43 - uses: actions-rs/toolchain@v1
48 - name: Check
49 uses: actions-rs/cargo@v1
52 args: --all --tests --benches
[all …]
/third_party/rust/crates/cxx/syntax/
Dattrs.rs41 // Suppress clippy needless_update lint ("struct update has no effect, all
47 pub fn parse(cx: &mut Errors, attrs: Vec<Attribute>, mut parser: Parser) -> OtherAttrs { in parse()
146 && cfg!(feature = "experimental-enum-variants-from-header") in parse()
162 // https://doc.rust-lang.org/reference/attributes/diagnostics.html in parse()
170 if tool == "rustfmt" { in parse()
171 // Skip, rustfmt only needs to find it in the pre-expansion source file. in parse()
173 } else if tool == "clippy" { in parse()
195 fn parse_doc_attribute(input: ParseStream) -> Result<DocAttribute> { in parse_doc_attribute()
211 fn parse_derive_attribute(cx: &mut Errors, input: ParseStream) -> Result<Vec<Derive>> { in parse_derive_attribute()
227 fn parse_repr_attribute(input: ParseStream) -> Result<Atom> { in parse_repr_attribute()
[all …]
/third_party/rust/crates/bindgen/
DREADME_zh.md22 /* automatically generated by rust-bindgen 0.99.9 */
51 │ ├── LICENSE -> ../LICENSE
56 ├── bindgen-cli
59 │ ├── LICENSE -> ../LICENSE
62 ├── bindgen-integration
68 ├── bindgen-tests
80 │ ├── assert-no-diff.bat
81 │ ├── no-includes.sh
85 ├── csmith-fuzzing
90 ├── example-graphviz-ir.png
[all …]

12