Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70a8e15 commit 03b24f2Copy full SHA for 03b24f2
compiler/rustc_mir_build/src/thir/pattern/const_to_pat.rs
@@ -211,16 +211,6 @@ impl<'tcx> ConstToPat<'tcx> {
211
} else if !self.saw_const_match_lint.get() {
212
if let Some(mir_structural_match_violation) = mir_structural_match_violation {
213
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
- }
224
ty::Adt(..) if mir_structural_match_violation => {
225
self.tcx().emit_spanned_lint(
226
lint::builtin::INDIRECT_STRUCTURAL_MATCH,
0 commit comments