-
-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pick up changes to non_exhaustive_omitted_patterns lint #66
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
warning: the lint level must be set on the whole match --> src/expr.rs:63:13 | 62 | #[cfg_attr(all(test, exhaustive), deny(non_exhaustive_omitted_patterns))] | ------------------------------- remove this attribute 63 | _ => unimplemented!("unknown Expr"), | ^ | = help: it no longer has any effect to set the lint level on an individual match arm help: set the lint level on the whole match | 22 + #[deny(non_exhaustive_omitted_patterns)] 23 | match expr { | warning: the lint level must be set on the whole match --> src/expr.rs:980:13 | 979 | #[cfg_attr(all(test, exhaustive), deny(non_exhaustive_omitted_patterns))] | ------------------------------- remove this attribute 980 | _ => unimplemented!("unknown BinOp"), | ^ | = help: it no longer has any effect to set the lint level on an individual match arm help: set the lint level on the whole match | 950 | self.word(#[deny(non_exhaustive_omitted_patterns)] | ++++++++++++++++++++++++++++++++++++++++ warning: the lint level must be set on the whole match --> src/expr.rs:990:13 | 989 | #[cfg_attr(all(test, exhaustive), deny(non_exhaustive_omitted_patterns))] | ------------------------------- remove this attribute 990 | _ => unimplemented!("unknown UnOp"), | ^ | = help: it no longer has any effect to set the lint level on an individual match arm help: set the lint level on the whole match | 985 | self.word(#[deny(non_exhaustive_omitted_patterns)] | ++++++++++++++++++++++++++++++++++++++++ warning: the lint level must be set on the whole match --> src/expr.rs:1046:9 | 1045 | #[cfg_attr(all(test, exhaustive), deny(non_exhaustive_omitted_patterns))] | ------------------------------- remove this attribute 1046 | _ => true, | ^ | = help: it no longer has any effect to set the lint level on an individual match arm help: set the lint level on the whole match | 1004 + #[deny(non_exhaustive_omitted_patterns)] 1005 | match expr { | warning: the lint level must be set on the whole match --> src/expr.rs:1106:9 | 1105 | #[cfg_attr(all(test, exhaustive), deny(non_exhaustive_omitted_patterns))] | ------------------------------- remove this attribute 1106 | _ => false, | ^ | = help: it no longer has any effect to set the lint level on an individual match arm help: set the lint level on the whole match | 1055 + #[deny(non_exhaustive_omitted_patterns)] 1056 | match expr { | warning: the lint level must be set on the whole match --> src/expr.rs:1159:9 | 1158 | #[cfg_attr(all(test, exhaustive), deny(non_exhaustive_omitted_patterns))] | ------------------------------- remove this attribute 1159 | _ => false, | ^ | = help: it no longer has any effect to set the lint level on an individual match arm help: set the lint level on the whole match | 1111 + #[deny(non_exhaustive_omitted_patterns)] 1112 | match expr { | warning: the lint level must be set on the whole match --> src/expr.rs:1219:9 | 1218 | #[cfg_attr(all(test, exhaustive), deny(non_exhaustive_omitted_patterns))] | ------------------------------- remove this attribute 1219 | _ => false, | ^ | = help: it no longer has any effect to set the lint level on an individual match arm help: set the lint level on the whole match | 1176 + #[deny(non_exhaustive_omitted_patterns)] 1177 | match expr { | warning: the lint level must be set on the whole match --> src/expr.rs:1274:9 | 1273 | #[cfg_attr(all(test, exhaustive), deny(non_exhaustive_omitted_patterns))] | ------------------------------- remove this attribute 1274 | _ => false, | ^ | = help: it no longer has any effect to set the lint level on an individual match arm help: set the lint level on the whole match | 1228 + #[deny(non_exhaustive_omitted_patterns)] 1229 | match expr { | warning: the lint level must be set on the whole match --> src/generics.rs:113:13 | 112 | #[cfg_attr(all(test, exhaustive), deny(non_exhaustive_omitted_patterns))] | ------------------------------- remove this attribute 113 | _ => unimplemented!("unknown TypeParamBound"), | ^ | = help: it no longer has any effect to set the lint level on an individual match arm help: set the lint level on the whole match | 105 + #[deny(non_exhaustive_omitted_patterns)] 106 | match type_param_bound { | warning: the lint level must be set on the whole match --> src/generics.rs:295:13 | 294 | #[cfg_attr(all(test, exhaustive), deny(non_exhaustive_omitted_patterns))] | ------------------------------- remove this attribute 295 | _ => unimplemented!("unknown WherePredicate"), | ^ | = help: it no longer has any effect to set the lint level on an individual match arm help: set the lint level on the whole match | 291 + #[deny(non_exhaustive_omitted_patterns)] 292 | match predicate { | warning: the lint level must be set on the whole match --> src/item.rs:35:13 | 34 | #[cfg_attr(all(test, exhaustive), deny(non_exhaustive_omitted_patterns))] | ------------------------------- remove this attribute 35 | _ => unimplemented!("unknown Item"), | ^ | = help: it no longer has any effect to set the lint level on an individual match arm help: set the lint level on the whole match | 17 + #[deny(non_exhaustive_omitted_patterns)] 18 | match item { | warning: the lint level must be set on the whole match --> src/item.rs:784:13 | 783 | #[cfg_attr(all(test, exhaustive), deny(non_exhaustive_omitted_patterns))] | ------------------------------- remove this attribute 784 | _ => unimplemented!("unknown ForeignItem"), | ^ | = help: it no longer has any effect to set the lint level on an individual match arm help: set the lint level on the whole match | 777 + #[deny(non_exhaustive_omitted_patterns)] 778 | match foreign_item { | warning: the lint level must be set on the whole match --> src/item.rs:926:13 | 925 | #[cfg_attr(all(test, exhaustive), deny(non_exhaustive_omitted_patterns))] | ------------------------------- remove this attribute 926 | _ => unimplemented!("unknown TraitItem"), | ^ | = help: it no longer has any effect to set the lint level on an individual match arm help: set the lint level on the whole match | 919 + #[deny(non_exhaustive_omitted_patterns)] 920 | match trait_item { | warning: the lint level must be set on the whole match --> src/item.rs:1116:13 | 1115 | #[cfg_attr(all(test, exhaustive), deny(non_exhaustive_omitted_patterns))] | ------------------------------- remove this attribute 1116 | _ => unimplemented!("unknown ImplItem"), | ^ | = help: it no longer has any effect to set the lint level on an individual match arm help: set the lint level on the whole match | 1109 + #[deny(non_exhaustive_omitted_patterns)] 1110 | match impl_item { | warning: the lint level must be set on the whole match --> src/item.rs:1368:13 | 1367 | #[cfg_attr(all(test, exhaustive), deny(non_exhaustive_omitted_patterns))] | ------------------------------- remove this attribute 1368 | _ => unimplemented!("unknown StaticMutability"), | ^ | = help: it no longer has any effect to set the lint level on an individual match arm help: set the lint level on the whole match | 1364 + #[deny(non_exhaustive_omitted_patterns)] 1365 | match mutability { | warning: the lint level must be set on the whole match --> src/lit.rs:17:13 | 16 | #[cfg_attr(all(test, exhaustive), deny(non_exhaustive_omitted_patterns))] | ------------------------------- remove this attribute 17 | _ => unimplemented!("unknown Lit"), | ^ | = help: it no longer has any effect to set the lint level on an individual match arm help: set the lint level on the whole match | 7 + #[deny(non_exhaustive_omitted_patterns)] 8 | match lit { | warning: the lint level must be set on the whole match --> src/pat.rs:32:13 | 31 | #[cfg_attr(all(test, exhaustive), deny(non_exhaustive_omitted_patterns))] | ------------------------------- remove this attribute 32 | _ => unimplemented!("unknown Pat"), | ^ | = help: it no longer has any effect to set the lint level on an individual match arm help: set the lint level on the whole match | 13 + #[deny(non_exhaustive_omitted_patterns)] 14 | match pat { | warning: the lint level must be set on the whole match --> src/path.rs:69:13 | 68 | #[cfg_attr(all(test, exhaustive), deny(non_exhaustive_omitted_patterns))] | ------------------------------- remove this attribute 69 | _ => unimplemented!("unknown GenericArgument"), | ^ | = help: it no longer has any effect to set the lint level on an individual match arm help: set the lint level on the whole match | 49 + #[deny(non_exhaustive_omitted_patterns)] 50 | match arg { | warning: the lint level must be set on the whole match --> src/path.rs:105:17 | 104 | #[cfg_attr(all(test, exhaustive), deny(non_exhaustive_omitted_patterns))] | ------------------------------- remove this attribute 105 | _ => Group::Second, | ^ | = help: it no longer has any effect to set the lint level on an individual match arm help: set the lint level on the whole match | 97 + #[deny(non_exhaustive_omitted_patterns)] 98 | match arg { | warning: the lint level must be set on the whole match --> src/stmt.rs:156:9 | 155 | #[cfg_attr(all(test, exhaustive), deny(non_exhaustive_omitted_patterns))] | ------------------------------- remove this attribute 156 | _ => false, | ^ | = help: it no longer has any effect to set the lint level on an individual match arm help: set the lint level on the whole match | 84 + #[deny(non_exhaustive_omitted_patterns)] 85 | match expr { | warning: the lint level must be set on the whole match --> src/stmt.rs:118:13 | 117 | #[cfg_attr(all(test, exhaustive), deny(non_exhaustive_omitted_patterns))] | ------------------------------- remove this attribute 118 | _ => unimplemented!("unknown BinOp"), | ^ | = help: it no longer has any effect to set the lint level on an individual match arm help: set the lint level on the whole match | 88 | Expr::Binary(expr) => #[deny(non_exhaustive_omitted_patterns)] | ++++++++++++++++++++++++++++++++++++++++ warning: the lint level must be set on the whole match --> src/stmt.rs:215:9 | 214 | #[cfg_attr(all(test, exhaustive), deny(non_exhaustive_omitted_patterns))] | ------------------------------- remove this attribute 215 | _ => false, | ^ | = help: it no longer has any effect to set the lint level on an individual match arm help: set the lint level on the whole match | 170 + #[deny(non_exhaustive_omitted_patterns)] 171 | match expr { | warning: the lint level must be set on the whole match --> src/ty.rs:31:13 | 30 | #[cfg_attr(all(test, exhaustive), deny(non_exhaustive_omitted_patterns))] | ------------------------------- remove this attribute 31 | _ => unimplemented!("unknown Type"), | ^ | = help: it no longer has any effect to set the lint level on an individual match arm help: set the lint level on the whole match | 14 + #[deny(non_exhaustive_omitted_patterns)] 15 | match ty { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context: dtolnay/syn#1522