Skip to content

Commit af96402

Browse files
committed
Add a future compatibility note
1 parent 4573bb8 commit af96402

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/librustc_typeck/check/_match.rs

+4
Original file line numberDiff line numberDiff line change
@@ -674,6 +674,10 @@ pub fn check_pat_enum<'a, 'tcx>(pcx: &pat_ctxt<'a, 'tcx>,
674674
report_bad_struct_kind(is_special_case);
675675
if !is_special_case {
676676
return
677+
} else {
678+
span_note!(tcx.sess, pat.span,
679+
"this warning will become a HARD ERROR in a future release. \
680+
See RFC 218 for details.");
677681
}
678682
}
679683
(variant.fields

0 commit comments

Comments
 (0)