nak: drop "deref on an immutable reference"

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38807>
This commit is contained in:
Eric Engestrom 2025-12-04 17:07:31 +01:00
parent 4fbda98cf4
commit 124fe82762

View file

@ -125,11 +125,8 @@ where
// --- Real encoding --- // --- Real encoding ---
// Create an instruction iterator and iterate it in chunks of 7. // Create an instruction iterator and iterate it in chunks of 7.
// fill the last chunk with a nop (it should never be executed). // fill the last chunk with a nop (it should never be executed).
let mut instr_iter = func let mut instr_iter =
.blocks func.blocks.iter().flat_map(|b| b.instrs.iter()).peekable();
.iter()
.flat_map(|b| b.instrs.iter().map(|x| &*x))
.peekable();
let mut filling_instr = Instr { let mut filling_instr = Instr {
pred: true.into(), pred: true.into(),
op: Op::Nop(OpNop { label: None }), op: Op::Nop(OpNop { label: None }),