about summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift/example/std_example.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-03-29 19:34:44 +0000
committerbors <bors@rust-lang.org>2024-03-29 19:34:44 +0000
commit971e4355b9e986bcba7c974d37f0b4dec5854f69 (patch)
tree89123a27a8a3d67beab5cfdd7a72bcb032cbf316 /compiler/rustc_codegen_cranelift/example/std_example.rs
parentd928657d9df509f9415ae7cb37b7d8be98022283 (diff)
parent89588f41f8a96984601b0abc7f8eaacfa3b7da8f (diff)
downloadrust-971e4355b9e986bcba7c974d37f0b4dec5854f69.tar.gz
rust-971e4355b9e986bcba7c974d37f0b4dec5854f69.zip
Auto merge of #12543 - Xaeroxe:manual-clamp-const, r=xFrednet,GuillaumeGomez
restrict manual_clamp to const case, bring it out of nursery

Implements the plan that I described in https://github.com/rust-lang/rust-clippy/pull/9484#issuecomment-1374522054

This does two things primarily

1. Restrict `manual_clamp` such that it will only trigger if we are able to guarantee that `clamp` won't panic at runtime.
2. Bring `manual_clamp` out of nursery status and move it into the complexity group.

changelog: [`manual_clamp`]: Restrict this lint such that it only triggers if max and min are const, and max is greater than or equal to min. Then bring it out of the nursery group.
Diffstat (limited to 'compiler/rustc_codegen_cranelift/example/std_example.rs')
0 files changed, 0 insertions, 0 deletions