Skip to content

Commit 03b24f2

Browse files
committed
remove some dead code
1 parent 70a8e15 commit 03b24f2

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

compiler/rustc_mir_build/src/thir/pattern/const_to_pat.rs

-10
Original file line numberDiff line numberDiff line change
@@ -211,16 +211,6 @@ impl<'tcx> ConstToPat<'tcx> {
211211
} else if !self.saw_const_match_lint.get() {
212212
if let Some(mir_structural_match_violation) = mir_structural_match_violation {
213213
match non_sm_ty.kind() {
214-
ty::RawPtr(pointee)
215-
if pointee.ty.is_sized(self.tcx(), self.param_env) => {}
216-
ty::FnPtr(..) | ty::RawPtr(..) => {
217-
self.tcx().emit_spanned_lint(
218-
lint::builtin::POINTER_STRUCTURAL_MATCH,
219-
self.id,
220-
self.span,
221-
PointerPattern,
222-
);
223-
}
224214
ty::Adt(..) if mir_structural_match_violation => {
225215
self.tcx().emit_spanned_lint(
226216
lint::builtin::INDIRECT_STRUCTURAL_MATCH,

0 commit comments

Comments
 (0)