File tree 2 files changed +9
-11
lines changed
compiler/rustc_codegen_cranelift/src
src/tools/clippy/clippy_utils/src
2 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -610,17 +610,13 @@ fn codegen_stmt<'tcx>(
610
610
}
611
611
}
612
612
Rvalue :: Cast (
613
- CastKind :: Pointer ( PointerCast :: UnsafeFnPointer ) ,
614
- ref operand,
615
- to_ty,
616
- )
617
- | Rvalue :: Cast (
618
- CastKind :: Pointer ( PointerCast :: MutToConstPointer ) ,
619
- ref operand,
620
- to_ty,
621
- )
622
- | Rvalue :: Cast (
623
- CastKind :: Pointer ( PointerCast :: ArrayToPointer ) ,
613
+ CastKind :: StripPattern
614
+ | CastKind :: Patternize
615
+ | CastKind :: Pointer (
616
+ PointerCast :: UnsafeFnPointer
617
+ | PointerCast :: MutToConstPointer
618
+ | PointerCast :: ArrayToPointer ,
619
+ ) ,
624
620
ref operand,
625
621
to_ty,
626
622
) => {
Original file line number Diff line number Diff line change @@ -133,6 +133,8 @@ fn check_rvalue<'tcx>(
133
133
| Rvalue :: Use ( operand)
134
134
| Rvalue :: Cast (
135
135
CastKind :: PointerFromExposedAddress
136
+ | CastKind :: StripPattern
137
+ | CastKind :: Patternize
136
138
| CastKind :: IntToInt
137
139
| CastKind :: FloatToInt
138
140
| CastKind :: IntToFloat
You can’t perform that action at this time.
0 commit comments