Skip to content

Conversation

@ldm0
Copy link
Contributor

@ldm0 ldm0 commented Feb 22, 2023

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

@rustbot
Copy link
Collaborator

rustbot commented Feb 22, 2023

r? @xFrednet

(rustbot has picked a reviewer for you, use r? to override)

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Feb 22, 2023
@ldm0 ldm0 changed the title Ldm0 fix unwrap in tests Fix test function checker in [unwrap_used], [expect_used] Feb 22, 2023
@ldm0 ldm0 changed the title Fix test function checker in [unwrap_used], [expect_used] Fix test function checker in unwrap_used, expect_used Feb 22, 2023
@xFrednet
Copy link
Contributor

Thank you for the PR, the changes look good to me :)

@bors r+

@bors
Copy link
Contributor

bors commented Feb 23, 2023

📌 Commit 79a9024 has been approved by xFrednet

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Feb 23, 2023

⌛ Testing commit 79a9024 with merge 3a1f8cd...

bors added a commit that referenced this pull request 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 -->
@bors
Copy link
Contributor

bors commented Feb 23, 2023

💔 Test failed - checks-action_test

@ldm0
Copy link
Contributor Author

ldm0 commented Feb 23, 2023

Forget to run cargo collect-metadata, fixed.

@xFrednet
Copy link
Contributor

No problem at all, I also forgot about it, that's what the CI is for :).

@bors r+

@bors
Copy link
Contributor

bors commented Feb 24, 2023

📌 Commit 84ceca8 has been approved by xFrednet

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Feb 24, 2023

⌛ Testing commit 84ceca8 with merge b528cc9...

@bors
Copy link
Contributor

bors commented Feb 24, 2023

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: xFrednet
Pushing b528cc9 to master...

1 similar comment
@bors
Copy link
Contributor

bors commented Feb 24, 2023

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: xFrednet
Pushing b528cc9 to master...

@bors bors merged commit b528cc9 into rust-lang:master Feb 24, 2023
smoelius added a commit to trailofbits/necessist that referenced this pull request Feb 27, 2023
rust-lang/rust-clippy#10264 was fixed by
rust-lang/rust-clippy#10391.

Use nightly Clippy to get the fix.
@ldm0 ldm0 deleted the ldm0_fix_unwrap_in_tests branch March 23, 2023 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties

Projects

None yet

4 participants