subtensor icon indicating copy to clipboard operation
subtensor copied to clipboard

deny unsafe math operations

Open sam0x17 opened this issue 2 months ago • 0 comments

Part of #300, we need to deny the ability to perform potentially-panicking and/or overflowing operations on number types in subtensor

AC:

  • [ ] fix existing offending overflow operations
  • [ ] fix existing offending float usages, if any
  • [ ] enforce #[deny(arithmetic_overflow)]
  • [ ] enforce clippy::integer_arithmetic
  • [ ] disallow the use of f32 / f64 entirely

sam0x17 avatar Apr 08 '24 16:04 sam0x17