| /third_party/rust/crates/env_logger/.github/workflows/ |
| D | ci.yml | 10 - main 22 needs: [test, msrv, docs, rustfmt, clippy] 23 runs-on: ubuntu-latest 25 - name: Done 27 test: 28 name: Test 31 os: ["ubuntu-latest", "windows-latest", "macos-latest"] 33 continue-on-error: ${{ matrix.rust != 'stable' }} 34 runs-on: ${{ matrix.os }} 36 - name: Checkout repository [all …]
|
| /third_party/rust/crates/nix/ |
| D | .cirrus.yml | 8 CLIPPYFLAGS: -D warnings -A unknown-lints 9 RUSTFLAGS: -D warnings 10 RUSTDOCFLAGS: -D warnings 12 MSRV: 1.56.1 18 - . $HOME/.cargo/env || true 19 - $TOOL -Vv 20 - rustc -Vv 21 - $TOOL $BUILD $ZFLAGS --target $TARGET --all-targets 22 - $TOOL doc $ZFLAGS --no-deps --target $TARGET 23 - $TOOL clippy $ZFLAGS --target $TARGET --all-targets -- $CLIPPYFLAGS [all …]
|
| /third_party/rust/crates/clap/.github/workflows/ |
| D | ci.yml | 7 - cron: '3 3 3 * *' 16 needs: [test, check, docs, rustfmt, clippy, cffconvert] 17 runs-on: ubuntu-latest 19 - name: Done 21 test: 22 name: Test 27 - build: linux 28 os: ubuntu-latest 31 - build: windows 32 os: windows-latest [all …]
|
| D | rust-next.yml | 1 name: rust-next 4 - cron: '3 3 3 * *' 9 test: 10 name: Test 15 - build: stable 16 os: ubuntu-latest 19 - build: linux 20 os: ubuntu-latest 23 - build: windows 24 os: windows-latest [all …]
|
| /third_party/rust/crates/bindgen/.github/workflows/ |
| D | bindgen.yml | 6 - main 9 - main 12 - main 15 rustfmt-clippy: 16 runs-on: ubuntu-latest 19 - uses: actions/checkout@v4 21 - name: Install stable 22 uses: dtolnay/rust-toolchain@master 24 # TODO: Should ideally be stable, but we use some nightly-only 29 - name: Run rustfmt [all …]
|
| /third_party/rust/rust/src/tools/clippy/book/src/development/ |
| D | adding_lints.md | 8 because that's clearly a non-descriptive name. 10 - [Adding a new lint](#adding-a-new-lint) 11 - [Setup](#setup) 12 - [Getting Started](#getting-started) 13 - [Defining Our Lint](#defining-our-lint) 14 - [Standalone](#standalone) 15 - [Specific Type](#specific-type) 16 - [Tests Location](#tests-location) 17 - [Testing](#testing) 18 - [Cargo lints](#cargo-lints) [all …]
|
| /third_party/rust/rust/src/tools/clippy/clippy_dev/src/ |
| D | new_lint.rs | 19 fn context<C: AsRef<str>>(self, text: C) -> Self; in context() 23 fn context<C: AsRef<str>>(self, text: C) -> Self { in context() 34 /// Creates the files required to implement and test a new lint and runs `update_lints`. 45 msrv: bool, in create() 46 ) -> io::Result<()> { in create() 60 create_lint(&lint, msrv).context("Unable to create lint implementation")?; in create() 61 create_test(&lint).context("Unable to create a test for the new lint")?; in create() 64 add_lint(&lint, msrv).context("Unable to add lint to clippy_lints/src/lib.rs")?; in create() 78 fn create_lint(lint: &LintData<'_>, enable_msrv: bool) -> io::Result<()> { in create_lint() 91 fn create_test(lint: &LintData<'_>) -> io::Result<()> { in create_test() [all …]
|
| /third_party/rust/rust/src/tools/clippy/book/src/ |
| D | configuration.md | 9 [CARGO_MANIFEST_DIR](https://doc.rust-lang.org/cargo/reference/environment-variables.html) environm… 15 avoid-breaking-exported-api = false 16 disallowed-names = ["toto", "tata", "titi"] 21 Each [configurable lint](https://rust-lang.github.io/rust-clippy/master/index.html#Configuration) 25 [disallowed-names](https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_names), 29 # default of disallowed-names is ["foo", "baz", "quux"] 30 disallowed-names = ["bar", ".."] # -> ["bar", "foo", "baz", "quux"] 33 To deactivate the "for further information visit *lint-link*" message you can define the `CLIPPY_DI… 60 cargo clippy -- -A clippy::lint_name 66 cargo clippy -- -W clippy::lint_name [all …]
|
| /third_party/rust/rust/src/tools/clippy/ |
| D | README.md | 3 …Test](https://github.com/rust-lang/rust-clippy/workflows/Clippy%20Test%20(bors)/badge.svg?branch=a… 4 [](#license) 6 A collection of lints to catch common mistakes and improve your [Rust](https://github.com/rust-lang… 8 [There are over 600 lints included in this crate!](https://rust-lang.github.io/rust-clippy/master/i… 10 Lints are divided into categories, each with a default [lint level](https://doc.rust-lang.org/rustc… 14 |-----------------------|--------------------------------------------------------------------------… 26 More to come, please [file an issue](https://github.com/rust-lang/rust-clippy/issues) if you have i… 31 on a case-by-case basis before enabling. 34 - Strict coding styles (e.g. [`clippy::else_if_without_else`]). 35 - Additional restrictions on CI (e.g. [`clippy::todo`]). [all …]
|
| /third_party/rust/rust/src/tools/clippy/clippy_lints/src/methods/ |
| D | err_expect.rs | 3 use clippy_utils::msrvs::{self, Msrv}; 18 msrv: &Msrv, in check() argument 22 // Test the version to make sure the lint can be showed (expect_err has been in check() 23 // introduced in rust 1.17.0 : https://github.com/rust-lang/rust/pull/38982) in check() 24 if msrv.meets(msrvs::EXPECT_ERR); in check() 48 fn get_data_type<'a>(cx: &LateContext<'_>, ty: Ty<'a>) -> Option<Ty<'a>> { in get_data_type()
|
| /third_party/rust/crates/clap/ |
| D | Makefile | 4 # - Easy to debug: show the command being run 5 # - Leverage CI features: Only run individual steps so we can use features like reporting elapsed t… 7 ARGS?=--workspace 10 ARGS+=--target ${TOOLCHAIN_TARGET} 13 MSRV?=1.64.0 macro 16 _FEATURES_minimal = --no-default-features --features "std" 18 …asm = --no-default-features --features "std help usage error-context suggestions" --features "depr… 19 _FEATURES_full = --features "deprecated derive cargo env unicode string unstable-replace wrap_help" 20 _FEATURES_next = ${_FEATURES_full} --features unstable-v5 21 _FEATURES_debug = ${_FEATURES_full} --features debug --features clap_complete/debug [all …]
|
| D | CONTRIBUTING.md | 7 …not* be ignored, all contributes are welcome!). These are by no means hard-and-fast rules, as I'm … 10 …- If backwards compatibility *must* be broken, use deprecation warnings if at all possible before … 11 - This does not apply for security concerns 13 - Parsing of arguments shouldn't slow down usage of the main program 14 …- This is also true of generating help and usage information (although *slightly* less stringent, … 16 …- Once parsing is complete, the memory footprint of `clap` should be low since the main program is… 18 …github.com/clap-rs/clap/blob/62eff1f8d3394cef819b4aa7b23a1032fc584f03/src/build/app/debug_asserts.… 19 exit gracefully on *end-user* error 25 - [Discussions](https://github.com/clap-rs/clap/discussions) can be useful for getting help and bra… 26 - [Issues](https://github.com/clap-rs/clap/issues) work well discussing a need and how to solve it [all …]
|
| /third_party/rust/crates/once_cell/xtask/src/ |
| D | main.rs | 1 #[cfg(test)] 8 const MSRV: &str = "1.56.0"; constant 10 fn main() -> xshell::Result<()> { in main() 18 cmd!(sh, "cargo test --workspace --no-run").run()?; in main() 22 let _s = section("TEST"); in main() 24 for &release in &[None, Some("--release")] { in main() 25 cmd!(sh, "cargo test --features unstable {release...}").run()?; in main() 28 "cargo test --no-default-features --features unstable,std,parking_lot {release...}" in main() 34 cmd!(sh, "cargo test --no-default-features --features unstable --test it").run()?; in main() 35 cmd!(sh, "cargo test --no-default-features --features unstable,alloc --test it").run()?; in main() [all …]
|
| /third_party/rust/rust/src/tools/clippy/tests/ui/ |
| D | cast_lossless_bool.rs | 1 //@run-rustfix 7 // Test clippy::cast_lossless with casts to integer types in main() 22 // Test with an expression wrapped in parens in main() 29 const fn abc(input: bool) -> u32 { in abc() 38 pub const fn convert(x: bool) -> u64 { in convert() 44 #[clippy::msrv = "1.27"] 49 #[clippy::msrv = "1.28"]
|
| D | manual_str_repeat.fixed | 1 //@run-rustfix 9 let _: String = "test".repeat(10); 14 let x = "test"; 22 let _: String = repeat(m!("test")).take(m!(count)).collect(); 31 let _: String = repeat_m!("test").take(count).collect(); 33 let x: Box<str> = Box::from("test"); 39 fn from_iter<T: IntoIterator<Item = Box<S>>>(_: T) -> Self { 46 let _: String = Cow::Borrowed("test").repeat(count); 56 #[clippy::msrv = "1.15"] 59 let _: String = std::iter::repeat("test").take(10).collect(); [all …]
|
| D | redundant_static_lifetimes.fixed | 1 //@run-rustfix 8 const VAR_ONE: &str = "Test constant #1"; // ERROR: Consider removing 'static. 10 const VAR_TWO: &str = "Test constant #2"; // This line should not raise a warning. 20 const VAR_SLICE: &[u8] = b"Test constant #1"; // ERROR: Consider removing 'static. 26 static STATIC_VAR_ONE: &str = "Test static #1"; // ERROR: Consider removing 'static. 28 static STATIC_VAR_TWO: &str = "Test static #2"; // This line should not raise a warning. 36 static STATIC_VAR_SLICE: &[u8] = b"Test static #3"; // ERROR: Consider removing 'static. 45 let false_positive: &'static str = "test"; 64 #[clippy::msrv = "1.16"] 69 #[clippy::msrv = "1.17"]
|
| D | cast_lossless_bool.fixed | 1 //@run-rustfix 7 // Test clippy::cast_lossless with casts to integer types 22 // Test with an expression wrapped in parens 29 const fn abc(input: bool) -> u32 { 38 pub const fn convert(x: bool) -> u64 { 44 #[clippy::msrv = "1.27"] 49 #[clippy::msrv = "1.28"]
|
| D | redundant_static_lifetimes.rs | 1 //@run-rustfix 8 const VAR_ONE: &'static str = "Test constant #1"; // ERROR: Consider removing 'static. 10 const VAR_TWO: &str = "Test constant #2"; // This line should not raise a warning. 20 const VAR_SLICE: &'static [u8] = b"Test constant #1"; // ERROR: Consider removing 'static. 26 static STATIC_VAR_ONE: &'static str = "Test static #1"; // ERROR: Consider removing 'static. 28 static STATIC_VAR_TWO: &str = "Test static #2"; // This line should not raise a warning. 36 static STATIC_VAR_SLICE: &'static [u8] = b"Test static #3"; // ERROR: Consider removing 'static. 45 let false_positive: &'static str = "test"; in main() 64 #[clippy::msrv = "1.16"] 69 #[clippy::msrv = "1.17"]
|
| D | manual_str_repeat.rs | 1 //@run-rustfix 9 let _: String = std::iter::repeat("test").take(10).collect(); in main() 14 let x = "test"; in main() 22 let _: String = repeat(m!("test")).take(m!(count)).collect(); in main() 31 let _: String = repeat_m!("test").take(count).collect(); in main() 33 let x: Box<str> = Box::from("test"); in main() 39 fn from_iter<T: IntoIterator<Item = Box<S>>>(_: T) -> Self { in main() 46 let _: String = repeat(Cow::Borrowed("test")).take(count).collect(); in main() 56 #[clippy::msrv = "1.15"] 59 let _: String = std::iter::repeat("test").take(10).collect(); in _msrv_1_15() [all …]
|
| D | manual_try_fold.rs | 1 //@aux-build:proc_macros.rs:proc-macro 13 // Test custom `Try` with more than 1 argument 17 fn from_residual(_: R) -> Self { in from_residual() 26 fn from_output(_: Self::Output) -> Self { in from_output() 30 fn branch(self) -> ControlFlow<Self::Residual, Self::Output> { in branch() 35 // Test custom `Try` with only 1 argument 40 fn from_residual(_: R) -> Self { in from_residual() 49 fn from_output(_: Self::Output) -> Self { in from_output() 53 fn branch(self) -> ControlFlow<Self::Residual, Self::Output> { in branch() 86 #[clippy::msrv = "1.26.0"] [all …]
|
| D | collapsible_str_replace.fixed | 1 //@run-rustfix 6 fn get_filter() -> char { 70 // Regression test 76 #[clippy::msrv = "1.57"] 81 #[clippy::msrv = "1.58"]
|
| /third_party/rust/crates/once_cell/ |
| D | CHANGELOG.md | 5 - 9 - Add `race::OnceRef` for storing a `&'a T`. 13 - Add `no_std` implementation based on `critical-section`, 15 - Deprecate `atomic-polyfill` feature (use the new `critical-section` instead) 19 - Increase minimal supported Rust version to 1.56.0. 20 - Implement `UnwindSafe` even if the `std` feature is disabled. 24 - Add extension to `unsync` and `sync` `Lazy` mut API: 25 - `force_mut` 26 - `get_mut` 31 - Make implementation compliant with [strict provenance](https://github.com/rust-lang/rust/issues/9… [all …]
|
| /third_party/rust/crates/log/.github/workflows/ |
| D | main.yml | 5 test: 6 name: Test 7 runs-on: ${{ matrix.os }} 12 - build: stable 13 os: ubuntu-latest 15 - build: beta 16 os: ubuntu-latest 18 - build: nightly 19 os: ubuntu-latest 21 - build: macos [all …]
|
| /third_party/rust/rust/src/tools/clippy/clippy_lints/src/ |
| D | lib.rs | 12 #![cfg_attr(feature = "deny-warnings", deny(warnings))] 15 // warn on lints, that are included in `rust-lang/rust`s bootstrap 54 use clippy_utils::msrvs::Msrv; 357 /// Pre-expansion lints run before any macro expansion has happened. 360 /// level (i.e `#![cfg_attr(...)]`) will still be expanded even when using a pre-expansion pass. 364 // NOTE: Do not add any more pre-expansion passes. These should be removed eventually. in register_pre_expansion_lints() 365 let msrv = Msrv::read(&conf.msrv, sess); in register_pre_expansion_lints() localVariable 366 let msrv = move || msrv.clone(); in register_pre_expansion_lints() localVariable 368 store.register_pre_expansion_pass(move || Box::new(attrs::EarlyAttributes { msrv: msrv() })); in register_pre_expansion_lints() 372 pub fn read_conf(sess: &Session, path: &io::Result<(Option<PathBuf>, Vec<String>)>) -> Conf { in read_conf() [all …]
|
| /third_party/rust/crates/either/.github/workflows/ |
| D | ci.yml | 11 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 …]
|