Skip to content

Commit

Permalink
Add a future compatibility note
Browse files Browse the repository at this point in the history
  • Loading branch information
petrochenkov committed Nov 19, 2015
1 parent 4573bb8 commit af96402
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/librustc_typeck/check/_match.rs
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,10 @@ pub fn check_pat_enum<'a, 'tcx>(pcx: &pat_ctxt<'a, 'tcx>,
report_bad_struct_kind(is_special_case);
if !is_special_case {
return
} else {
span_note!(tcx.sess, pat.span,
"this warning will become a HARD ERROR in a future release. \
See RFC 218 for details.");
}
}
(variant.fields
Expand Down

0 comments on commit af96402

Please sign in to comment.