-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow-unwrap-in-tests = true
no longer works for plain #[test]
#10264
Labels
C-bug
Category: Clippy is not doing the correct thing
Comments
bors
added a commit
that referenced
this issue
Feb 23, 2023
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](#10391) <!-- changelog_checked -->
smoelius
added a commit
to smoelius/necessist
that referenced
this issue
Feb 27, 2023
rust-lang/rust-clippy#10264 was fixed by rust-lang/rust-clippy#10391. Use nightly Clippy to get the fix.
smoelius
added a commit
to smoelius/necessist
that referenced
this issue
Feb 27, 2023
rust-lang/rust-clippy#10264 was fixed by rust-lang/rust-clippy#10391. Use nightly Clippy to get the fix.
smoelius
added a commit
to smoelius/necessist
that referenced
this issue
Feb 27, 2023
rust-lang/rust-clippy#10264 was fixed by rust-lang/rust-clippy#10391. Use nightly Clippy to get the fix.
smoelius
added a commit
to smoelius/necessist
that referenced
this issue
Feb 27, 2023
rust-lang/rust-clippy#10264 was fixed by rust-lang/rust-clippy#10391. Use nightly Clippy to get the fix.
smoelius
added a commit
to trailofbits/necessist
that referenced
this issue
Feb 27, 2023
rust-lang/rust-clippy#10264 was fixed by rust-lang/rust-clippy#10391. Use nightly Clippy to get the fix.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
Since #9686,
allow-unwrap-in-tests = true
seems to no longer work for plain#[test]
. Was this intentional? (cc: @kraktus)Reproducer
From within the Clippy repo, store the following a file called
a.sh
:Run the following commands:
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: