Skip to content

Conversation

YohDeadfall
Copy link
Contributor

@YohDeadfall YohDeadfall commented Aug 26, 2025

Fixes #15564.

changelog: [cargo::panic]: Enabled to run in const contexts

@rustbot
Copy link
Collaborator

rustbot commented Aug 26, 2025

r? @Jarcho

rustbot has assigned @Jarcho.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Aug 26, 2025
@samueltardieu
Copy link
Member

It should still probably not trigger in always const context, evaluated at compile-time.

Copy link

github-actions bot commented Aug 26, 2025

Lintcheck changes for e54afd3

Lint Added Removed Changed
clippy::panic 14 0 0

This comment will be updated if you push new changes

@samueltardieu
Copy link
Member

(the intent of #8358 seem to be about always const contexts anyway)

You can use clippy_utils::is_inside_always_const_context() for this.

@samueltardieu
Copy link
Member

Can you please squash the commits?

r? samueltardieu

@rustbot rustbot assigned samueltardieu and unassigned Jarcho Aug 26, 2025
@YohDeadfall
Copy link
Contributor Author

Squashed. Thank you!

@samueltardieu samueltardieu added this pull request to the merge queue Aug 26, 2025
@samueltardieu
Copy link
Member

Thanks.

Merged via the queue into rust-lang:master with commit c394c00 Aug 26, 2025
11 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Aug 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support clippy::panic for const contexts

4 participants