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
Currently, some uses of the as operator are not entirely safe. In particular, it is undefined behavior if:
...
Or a floating point value does not fit in another floating point type (#15536)
However, issue 15536 is closed and fixed, as far as I understand, and this is not undefined behavior anymore (in fact, it was never really undefined behavior; the LLVM docs described it as such, but those docs have been clarified).
It looks like the warning in the documentation of AsPrimitive is not accurate anymore.