Re: [PATCH v2 02/12] rust: num: reject Bounded::shr overshifts at build time
"Gary Guo" <[email protected]>
| Newsgroups | gmane.linux.kernel.rust,gmane.linux.kernel,gmane.comp.video.dri.devel,gmane.linux.documentation |
|---|---|
| Message-ID | <[email protected]> |
On Mon Aug 10, 2026 at 2:55 PM BST, Eliot Courtney wrote: > Make `shr` reject shifts of at least the type's bit width at build > time, instead of panicking or masking the shift amount at runtime. > > Signed-off-by: Eliot Courtney <[email protected]> > Acked-by: Alexandre Courbot <[email protected]> Reviewed-by: Gary Guo <[email protected]> > --- > rust/kernel/num/bounded.rs | 1 + > 1 file changed, 1 insertion(+)