Skip to content

Commit d802a7a

Browse files
author
Lukas Markeffsky
committed
unify dyn* coercions with other pointer coercions
1 parent 249210e commit d802a7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_utils/src/qualify_min_const_fn.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ fn check_rvalue<'tcx>(
154154
Rvalue::Cast(CastKind::PointerExposeProvenance, _, _) => {
155155
Err((span, "casting pointers to ints is unstable in const fn".into()))
156156
},
157-
Rvalue::Cast(CastKind::DynStar, _, _) => {
157+
Rvalue::Cast(CastKind::PointerCoercion(PointerCoercion::DynStar), _, _) => {
158158
// FIXME(dyn-star)
159159
unimplemented!()
160160
},

0 commit comments

Comments
 (0)