]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_lint/internal.rs
Do not ICE on multipart suggestions touching multiple files
[rust.git] / src / librustc_lint / internal.rs
index 5a5aedc2e9715b33bff96069e1868ab2b43fa0d7..91aeccbb5e334457e44b6ce9e0ed4cfabdc79e52 100644 (file)
@@ -221,7 +221,7 @@ fn gen_args(segment: &PathSegment<'_>) -> String {
 
 impl EarlyLintPass for LintPassImpl {
     fn check_item(&mut self, cx: &EarlyContext<'_>, item: &Item) {
-        if let ItemKind::Impl(_, _, _, _, Some(lint_pass), _, _) = &item.kind {
+        if let ItemKind::Impl { of_trait: Some(lint_pass), .. } = &item.kind {
             if let Some(last) = lint_pass.path.segments.last() {
                 if last.ident.name == sym::LintPass {
                     let expn_data = lint_pass.path.span.ctxt().outer_expn_data();