overflower icon indicating copy to clipboard operation
overflower copied to clipboard

A Rust compiler plugin and support library to annotate overflow behavior

Results 9 overflower issues
Sort by recently updated
recently updated
newest added

Updates the requirements on [syn](https://github.com/dtolnay/syn) to permit the latest version. Release notes Sourced from syn's releases. 2.0.18 Permit empty attr in syn::meta::parser (#1460) Commits 4cae0a2 Release 2.0.18 278dbe1 Merge pull...

dependencies

this should just be a matter of importing the "original" traits either from `std` or `core` depending on a `with_std` feature.

Add a build feature to make default impls optional. This will make support useful in other settings.

ShrPanic may panic if bit size is exceeded. ShrWrap and ShrSaturate should both return 0 in that case.

Has this been proposed as a Rust RFC? Having this available by default in Rust would lower the barrier to actually use it a lot.

I wonder if overflower should have a mode that avoids panics distinct from `wrap`/`saturate` to do whatever on overflow (e.g. return 0) but avoid panic. The rationale is that even...

This currently doesn't do the right thing (has to be modeled after saturating shifts)

Overflower should also change casts (as in `256u16 as u8`) to specify overflow behavior.