Home
last modified time | relevance | path

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

12

/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/syn/tests/repo/
Dmod.rs1 #![allow(clippy::manual_assert)]
18 #[rustfmt::skip]
22 "src/tools/clippy/tests/ui/needless_raw_string.rs",
23 "src/tools/clippy/tests/ui/needless_raw_string_hashes.rs",
24 "src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/0085_expr_literals.rs",
28 "tests/ui/explicit-tail-calls/return-lifetime-sub.rs",
30 // TODO: non-lifetime binders: `where for<'a, T> &'a Struct<T>: Trait`
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",
[all …]
/third_party/rust/crates/clap/.github/workflows/
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 …]
Dci.yml7 - cron: '3 3 3 * *'
16 needs: [test, check, docs, rustfmt, clippy, cffconvert]
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 …]
/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/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/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/
Dtest_item.rs1 #![allow(clippy::uninlined_format_args)]
65 #[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()
301 fn f() -> impl Sized + {} in test_impl_trait_trailing_plus()
Dtest_expr.rs1 #![allow(clippy::single_element_loop, clippy::uninlined_format_args)]
54 #[rustfmt::skip]
312 #[rustfmt::skip] // rustfmt bug: https://github.com/rust-lang/rustfmt/issues/4808 in test_closure_vs_rangefull()
371 // Parentheses required. See https://github.com/rust-lang/rust/pull/87026. in test_ambiguous_label()
Dtest_path.rs1 #![allow(clippy::uninlined_format_args)]
107 #[rustfmt::skip] in parse_parenthesized_path_arguments_with_disambiguator()
108 let tokens = quote!(dyn FnOnce::() -> !); in parse_parenthesized_path_arguments_with_disambiguator()
/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/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/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()
147 && cfg!(feature = "experimental-enum-variants-from-header") in parse()
163 // https://doc.rust-lang.org/reference/attributes/diagnostics.html in parse()
171 if tool == "rustfmt" { in parse()
172 // Skip, rustfmt only needs to find it in the pre-expansion source file. in parse()
174 } else if tool == "clippy" { in parse()
196 fn parse_doc_attribute(meta: &Meta) -> Result<DocAttribute> { in parse_doc_attribute()
214 fn parse_derive_attribute(cx: &mut Errors, input: ParseStream) -> Result<Vec<Derive>> { in parse_derive_attribute()
230 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 …]
/third_party/rust/crates/unicode-ident/src/
Dlib.rs1 …b.com/dtolnay/unicode-ident)&ensp;[![crates-io]](https://crates.io/crates/unicode-ident)&ensp;[![d…
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…
14 //! This crate is a better optimized implementation of the older `unicode-xid`
16 //! ASCII and non-ASCII codepoints with better performance, 2&ndash;10&times;
17 //! faster than `unicode-xid`.
26 //! - `unicode-ident` is this crate;
27 //! - [`unicode-xid`] is a widely used crate run by the "unicode-rs" org;
28 //! - `ucd-trie` and `fst` are two data structures supported by the
[all …]
/third_party/rust/crates/codespan/codespan-reporting/
DCHANGELOG.md10 ## [0.11.0] - 2020-11-30
15 Some versions were skipped to sync up with the `codespan-lsp` crate. The release
20 - If a label spans over multiple lines, not all lines are rendered.
22 - There is now a custom error type.
23 - There now is a medium rendering mode that is like the short rendering mode
25 - `PartialEq` and `Eq` implementations for the `diagnostic::{Diagnostic, Label, Severity}` types.
29 - All errors now use the error type `codespan_reporting::file::Error`.
30 This type also replaces the custom error type for `codespan-lsp`.
34 - Empty error codes are not rendered.
35 - The locus ("location of the diagnostic") is now computed so it is always at the first
[all …]

12