Skip to content
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

new lint: [should_panic_without_expect] #11204

Merged
merged 2 commits into from
Aug 19, 2023
Merged

new lint: [should_panic_without_expect] #11204

merged 2 commits into from
Aug 19, 2023

Conversation

y21
Copy link
Member

@y21 y21 commented Jul 21, 2023

Closes #10956

changelog: new lint: [should_panic_without_expect]

@rustbot
Copy link
Collaborator

rustbot commented Jul 21, 2023

r? @Alexendoo

(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 Jul 21, 2023
clippy_lints/src/attrs.rs Outdated Show resolved Hide resolved
clippy_lints/src/attrs.rs Outdated Show resolved Hide resolved
clippy_lints/src/attrs.rs Outdated Show resolved Hide resolved
@Alexendoo
Copy link
Member

I'd say call this should_panic_without_expect, I wasn't aware you could supply an expected panic message and the title made me think it would be like a comment

@y21 y21 changed the title new lint: [should_panic_without_reason] new lint: [should_panic_without_expect] Jul 29, 2023
@y21
Copy link
Member Author

y21 commented Jul 29, 2023

I'd say call this should_panic_without_expect, I wasn't aware you could supply an expected panic message and the title made me think it would be like a comment

Good point, I renamed the lint and also rewrote it as a late lint now

@y21
Copy link
Member Author

y21 commented Aug 18, 2023

I'm not sure why CI is failing. It wants me to run cargo uibless but that does nothing. Afaict it failed on cargo test --features deny-warnings,internal but if I run it locally it passes 😕

@Centri3
Copy link
Member

Centri3 commented Aug 18, 2023

Maybe rebase and run cargo bless? rustfix is ran automatically now so it may be creating a fixed file

@Alexendoo
Copy link
Member

You can add //@no-rustfix to prevent that

@Alexendoo
Copy link
Member

👍

@bors r+

@bors
Copy link
Collaborator

bors commented Aug 19, 2023

📌 Commit b4ab67f has been approved by Alexendoo

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Aug 19, 2023

⌛ Testing commit b4ab67f with merge b7cad50...

@bors
Copy link
Collaborator

bors commented Aug 19, 2023

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

@bors bors merged commit b7cad50 into rust-lang:master Aug 19, 2023
8 checks passed
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
Development

Successfully merging this pull request may close these issues.

Lint on should_panic tests without reasons
5 participants