We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e86913 commit 7437f77Copy full SHA for 7437f77
src/librustc_mir/hair/pattern/mod.rs
@@ -1229,7 +1229,13 @@ fn search_for_adt_without_structural_match<'tcx>(tcx: TyCtxt<'tcx>,
1229
ty::RawPtr(..) => {
1230
// `#[structural_match]` ignores substructure of
1231
// `*const _`/`*mut _`, so skip super_visit_with
1232
-
+ //
1233
+ // (But still tell caller to continue search.)
1234
+ return false;
1235
+ }
1236
+ ty::FnDef(..) | ty::FnPtr(..) => {
1237
+ // types of formals and return in `fn(_) -> _` are also irrelevant
1238
1239
// (But still tell caller to continue search.)
1240
return false;
1241
}
0 commit comments