diff options
| author | Lukas Markeffsky <@> | 2024-09-15 16:47:42 +0200 |
|---|---|---|
| committer | Lukas Markeffsky <@> | 2024-09-24 22:17:55 +0200 |
| commit | d802a7a3c79e96be1f77c7ce3ecc7f8c650000f7 (patch) | |
| tree | cfc5ba69cb9a981315f39bdceb6e138142aee37c | |
| parent | 249210e8d86a4de347def1be559dfa79d346cb9f (diff) | |
| download | rust-d802a7a3c79e96be1f77c7ce3ecc7f8c650000f7.tar.gz rust-d802a7a3c79e96be1f77c7ce3ecc7f8c650000f7.zip | |
unify dyn* coercions with other pointer coercions
| -rw-r--r-- | clippy_utils/src/qualify_min_const_fn.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_utils/src/qualify_min_const_fn.rs b/clippy_utils/src/qualify_min_const_fn.rs index d9befb3c157..6434c2f42cf 100644 --- a/clippy_utils/src/qualify_min_const_fn.rs +++ b/clippy_utils/src/qualify_min_const_fn.rs @@ -154,7 +154,7 @@ fn check_rvalue<'tcx>( Rvalue::Cast(CastKind::PointerExposeProvenance, _, _) => { Err((span, "casting pointers to ints is unstable in const fn".into())) }, - Rvalue::Cast(CastKind::DynStar, _, _) => { + Rvalue::Cast(CastKind::PointerCoercion(PointerCoercion::DynStar), _, _) => { // FIXME(dyn-star) unimplemented!() }, |
