Skip to content
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
merged 1 commit into from
Jan 4, 2024

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Jan 4, 2024

Context: dtolnay/syn#1522

    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 {
       |
@dtolnay dtolnay merged commit d54ac46 into master Jan 4, 2024
19 checks passed
@dtolnay dtolnay deleted the exhaustive branch January 4, 2024 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant