Skip to content

Commit dddaa63

Browse files
authored
Update compiler/rustc_middle/src/mir/interpret/allocation.rs
1 parent b7a9d87 commit dddaa63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_middle/src/mir/interpret/allocation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ fn all_zero(buf: &[u8]) -> bool {
155155
}
156156
// Just fast-rejecting based on the first element significantly reduces the amount that we end
157157
// up walking the whole array.
158-
if buf.get(0) != Some(0) {
158+
if buf.get(0) != Some(&0) {
159159
return false;
160160
}
161161

0 commit comments

Comments
 (0)