We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8052d8 commit f3ebfabCopy full SHA for f3ebfab
src/librustc_mir/hair/pattern/mod.rs
@@ -1203,7 +1203,13 @@ fn search_for_adt_without_structural_match<'tcx>(tcx: TyCtxt<'tcx>,
1203
ty::RawPtr(..) => {
1204
// `#[structural_match]` ignores substructure of
1205
// `*const _`/`*mut _`, so skip super_visit_with
1206
-
+ //
1207
+ // (But still tell caller to continue search.)
1208
+ return false;
1209
+ }
1210
+ ty::FnDef(..) | ty::FnPtr(..) => {
1211
+ // types of formals and return in `fn(_) -> _` are also irrelevant
1212
1213
// (But still tell caller to continue search.)
1214
return false;
1215
}
0 commit comments