You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…-by-byte-size, r=flip1995
size_of_in_element_count: Disable lint on division by byte-size
Fixesrust-lang#6511
It is fairly common to divide some length in bytes by the byte-size of a single element before creating a `from_raw_parts` slice or similar operation. This lint would erroneously disallow such expressions.
Just in case, instead of simply disabling this lint in the RHS of a division, keep track of the inversion and enable it again on recursive division.
---
changelog: Do not trigger size_of_in_element_count when dividing by element size
There are currently three ways to create ast elements,
build::mk_*
,build::ExtCtxtMethods
, andpipes::ast_builder::ext_ctxt_ast_builder
.(I'm working on this.)
The text was updated successfully, but these errors were encountered: