diff options
| author | bors <bors@rust-lang.org> | 2023-02-24 09:24:41 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-02-24 09:24:41 +0000 |
| commit | b528cc90bc35a111125bfd2382bfcdcd345cea69 (patch) | |
| tree | f435ea1d976e7ba9ad2f0a30f725c29c4147ad63 /clippy_lints/src/utils | |
| parent | 659112ca956c70e9983c9e1e3d1e3a7abec63110 (diff) | |
| parent | 84ceca852eee1bcfcc987fc6d98e22e7395b4c69 (diff) | |
| download | rust-b528cc90bc35a111125bfd2382bfcdcd345cea69.tar.gz rust-b528cc90bc35a111125bfd2382bfcdcd345cea69.zip | |
Auto merge of #10391 - ldm0:ldm0_fix_unwrap_in_tests, r=xFrednet
Fix test function checker in `unwrap_used`, `expect_used` After #9686 , `unwrap` and `expect` in integration tests and raw test functions won't be allowed. fixes #10011 fixes #10238 fixes #10264 --- changelog: Fix: [`expect_used`], [`unwrap_used`], [`dbg_macro`], [`print_stdout`], [`print_stderr`]: No longer lint in test functions, if the related configuration is set [#10391](https://github.com/rust-lang/rust-clippy/pull/10391) <!-- changelog_checked -->
Diffstat (limited to 'clippy_lints/src/utils')
| -rw-r--r-- | clippy_lints/src/utils/conf.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clippy_lints/src/utils/conf.rs b/clippy_lints/src/utils/conf.rs index c3c73ac6e37..5f74de5a288 100644 --- a/clippy_lints/src/utils/conf.rs +++ b/clippy_lints/src/utils/conf.rs @@ -419,19 +419,19 @@ define_Conf! { (max_include_file_size: u64 = 1_000_000), /// Lint: EXPECT_USED. /// - /// Whether `expect` should be allowed within `#[cfg(test)]` + /// Whether `expect` should be allowed in test functions or `#[cfg(test)]` (allow_expect_in_tests: bool = false), /// Lint: UNWRAP_USED. /// - /// Whether `unwrap` should be allowed in test cfg + /// Whether `unwrap` should be allowed in test functions or `#[cfg(test)]` (allow_unwrap_in_tests: bool = false), /// Lint: DBG_MACRO. /// - /// Whether `dbg!` should be allowed in test functions + /// Whether `dbg!` should be allowed in test functions or `#[cfg(test)]` (allow_dbg_in_tests: bool = false), /// Lint: PRINT_STDOUT, PRINT_STDERR. /// - /// Whether print macros (ex. `println!`) should be allowed in test functions + /// Whether print macros (ex. `println!`) should be allowed in test functions or `#[cfg(test)]` (allow_print_in_tests: bool = false), /// Lint: RESULT_LARGE_ERR. /// |
