Skip to content

Commit 3326f19

Browse files
committed
Auto merge of #90641 - matthiaskrgr:mut, r=cjgillot
pointee_info_at() does not need mutable access
2 parents 3cd3bbe + 592fd28 commit 3326f19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_codegen_ssa/src/mir/statement.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
125125
let count = self.codegen_operand(&mut bx, count).immediate();
126126
let pointee_layout = dst_val
127127
.layout
128-
.pointee_info_at(&mut bx, rustc_target::abi::Size::ZERO)
128+
.pointee_info_at(&bx, rustc_target::abi::Size::ZERO)
129129
.expect("Expected pointer");
130130
let bytes = bx.mul(count, bx.const_usize(pointee_layout.size.bytes()));
131131

0 commit comments

Comments
 (0)