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
At the moment [1, ..256] creates 2 * 256 instructions. LLVM will optimize it back to a loop or a memset, but it would better to start with that in the first place and rely on the unrolling heuristics for small loops (which may or not be enabled right now).
The text was updated successfully, but these errors were encountered:
Fix issue rust-lang#2907.
Update the "borrow box" lint to avoid recommending the following
conversion:
```
// Old
pub fn f(&mut Box<T>) {...}
// New
pub fn f(&mut T) {...}
```
Given a mutable reference to a box, functions may want to change
"which" object the Box is pointing at.
This change avoids recommending removing the "Box" parameter
for mutable references.
changelog: Don't trigger [`borrow_box`] lint on `&mut Box` references
At the moment [1, ..256] creates 2 * 256 instructions. LLVM will optimize it back to a loop or a memset, but it would better to start with that in the first place and rely on the unrolling heuristics for small loops (which may or not be enabled right now).
The text was updated successfully, but these errors were encountered: