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
Any usage of offset from the ptr module is likely wrong, because it uses size_of instead of nonzero_size_of. The iterators and slice implementations are two examples.
structFoo;let xs = ~[Foo,Foo,Foo];println(fmt!("%?", xs.slice(0,2).to_owned()))// prints `~[]`
The text was updated successfully, but these errors were encountered:
Rustup
This needs a review this time. Especially rust-lang/rust-clippy@521bf8f cc `@camsteffen` I think this is necessary now, because `itertools` is no longer a dependency of `clippy_utils` and therefore this path can't be found 🤔
( I forgot about the sync last week. I should get to document this process better, so other people can do it when I'm not around )
changelog: none
Any usage of
offset
from theptr
module is likely wrong, because it usessize_of
instead ofnonzero_size_of
. The iterators andslice
implementations are two examples.The text was updated successfully, but these errors were encountered: