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
Instead, this happened: code iterates over the vec without toching real backing buffer. This is a loop without side effects so it should be removed by LLVM.
I tried this code:
I expected to see this happen: code compiles into noop essentially, like transmute.
Expected code
Instead, this happened: code iterates over the vec without toching real backing buffer. This is a loop without side effects so it should be removed by LLVM.
Generated code
Meta
rustc --version --verbose
:Godbolt link with code
The text was updated successfully, but these errors were encountered: