308. L0527 neg_mod_fixup drops C++'s + m remainder guard (2026-11-22)
- Decision.
(e + m) % mwarns with a fix toe % m(and(x % m + m) % mtox % m) whenmis an integer literal or a name or field the checker types asInt,I128or an integer range.U64and unknown types get no finding. The catalog row suggestedModsubtraction; the lint teaches the smaller step first and its explain points atMod<P>. - Why. Integer
%is Euclidean (spec/core/13-lowering.md;-7 % 3prints2incpl run), so the guard is dead code that can overflow. 16stdfindings and 1 corpus port (noi02p6), 0 in corpusspec.cp. - Reverse. Delete
crates/cpl-lint/src/rules/euclid.rsandspec/lints/neg_mod_fixup/.