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
Even though we only use the lang item as a potential trait for overloadable expressions, push_bound_candidates in typeck::check::method will also consider traits in generic bounds.
It doesn't seem hard to duplicate the functionality of typeck::check::method::lookup to only consider the relevant operator overload trait - also see push_extension_candidates.
Pointers cannot be converted to integers at compile time
Fixrust-lang#12402
changelog: [`transmutes_expressible_as_ptr_casts`]: do not suggest invalid const casts
Currently this code compiles, but it shouldn't:
The text was updated successfully, but these errors were encountered: