mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
castkind::subtype in clippy
This commit is contained in:
@@ -141,7 +141,8 @@ fn check_rvalue<'tcx>(
|
||||
| CastKind::FloatToFloat
|
||||
| CastKind::FnPtrToPtr
|
||||
| CastKind::PtrToPtr
|
||||
| CastKind::PointerCoercion(PointerCoercion::MutToConstPointer | PointerCoercion::ArrayToPointer, _),
|
||||
| CastKind::PointerCoercion(PointerCoercion::MutToConstPointer | PointerCoercion::ArrayToPointer, _)
|
||||
| CastKind::Subtype,
|
||||
operand,
|
||||
_,
|
||||
) => check_operand(cx, operand, span, body, msrv),
|
||||
@@ -312,7 +313,6 @@ fn check_place<'tcx>(
|
||||
| ProjectionElem::OpaqueCast(..)
|
||||
| ProjectionElem::Downcast(..)
|
||||
| ProjectionElem::Subslice { .. }
|
||||
| ProjectionElem::Subtype(_)
|
||||
| ProjectionElem::Index(_)
|
||||
| ProjectionElem::UnwrapUnsafeBinder(_) => {},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user