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
{{ message }}
Repository navigation
Add a warning for casts with loss of precision #17900
Activity
japaric commentedon Oct 10, 2014
(For the general case, you could use
num::castwhich returnsNoneif the operation under/overflows (it does a check at runtime).)As for the lint request, I think that's a dupe of #14165
bfops commentedon Oct 10, 2014
Ah good to know! Thanks!
I don't think it's quite a dupe because that issue only refers to literals - it should maybe be generalized?
steveklabnik commentedon Jan 27, 2015
closing as dup of #5477
Auto merge of rust-lang#17900 - darichey:exclude-vendored-libraries, …