diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2015-11-17 22:11:54 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2015-11-19 11:41:09 +0300 |
| commit | af96402cc88a40db4f61b22924bfeb24a53cf424 (patch) | |
| tree | 92475894912858ec4ab79fa5152d2f9aad2c80b3 | |
| parent | 4573bb8e967e8f21f711bf9fd1dd756342829b1f (diff) | |
| download | rust-af96402cc88a40db4f61b22924bfeb24a53cf424.tar.gz rust-af96402cc88a40db4f61b22924bfeb24a53cf424.zip | |
Add a future compatibility note
| -rw-r--r-- | src/librustc_typeck/check/_match.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/librustc_typeck/check/_match.rs b/src/librustc_typeck/check/_match.rs index 7cc81027f02..4e305e0f6f7 100644 --- a/src/librustc_typeck/check/_match.rs +++ b/src/librustc_typeck/check/_match.rs @@ -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 |
