Skip to content

Commit ddc60fd

Browse files
committed
Auto merge of #97679 - Dylan-DPC:rollup-nswmgmx, r=Dylan-DPC
Rollup of 5 pull requests Successful merges: - #97366 (Stabilize `{slice,array}::from_ref`) - #97653 (add cast kind of from_exposed_addr (int-to-ptr casts)) - #97663 (take back half-baked noaliasing check in Assignment) - #97664 (On E0204 suggest missing type param bounds) - #97668 (rustdoc: clean up primitive.slice.html links) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2 parents 8e2e1b0 + fccfff9 commit ddc60fd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

clippy_utils/src/qualify_min_const_fn.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,12 @@ fn check_rvalue<'tcx>(
131131
Rvalue::Cast(CastKind::Misc, operand, _) => {
132132
check_operand(tcx, operand, span, body)
133133
},
134-
Rvalue::Cast(CastKind::Pointer(PointerCast::MutToConstPointer | PointerCast::ArrayToPointer), operand, _) => {
134+
Rvalue::Cast(
135+
CastKind::PointerFromExposedAddress
136+
| CastKind::Pointer(PointerCast::MutToConstPointer | PointerCast::ArrayToPointer),
137+
operand,
138+
_
139+
) => {
135140
check_operand(tcx, operand, span, body)
136141
},
137142
Rvalue::Cast(

0 commit comments

Comments
 (0)