manual_div_ceil
lint can suggest broken code
#13843
Labels
C-bug
Category: Clippy is not doing the correct thing
manual_div_ceil
lint can suggest broken code
#13843
Summary
The
manual_div_ceil
list may suggest broken code with a method called on an integer literal of ambiguous type. Clippy should either not make the suggestion or insert the correct type suffix.Reproducer
I tried this code:
Clippy suggests the following fix:
The suggested code fails to compile because of the ambiguous integer type:
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: