-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of #5709 - ebroto:5389_ice, r=Manishearth
Fix ICE in consts::binop changelog: Fix ICE in `consts::binop` Fixes #5389
- Loading branch information
Showing
2 changed files
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#![allow(clippy::explicit_counter_loop)] | ||
|
||
fn main() { | ||
let v = vec![1, 2, 3]; | ||
let mut i = 0; | ||
let max_storage_size = [0; 128 * 1024]; | ||
for item in &v { | ||
bar(i, *item); | ||
i += 1; | ||
} | ||
} | ||
|
||
fn bar(_: usize, _: u32) {} |