diff options
| author | bors <bors@rust-lang.org> | 2020-11-12 07:40:33 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-11-12 07:40:33 +0000 |
| commit | bd13a3585627c6854121bff22d071e69ada2aa48 (patch) | |
| tree | 855a71828642c59f90bf52c90d631c2158bdf4fc | |
| parent | c4fc076e11b7125d481ee96df6d2e0c4ed493356 (diff) | |
| parent | 92ece848735c51767b95d31055e57405dec511e5 (diff) | |
| download | rust-bd13a3585627c6854121bff22d071e69ada2aa48.tar.gz rust-bd13a3585627c6854121bff22d071e69ada2aa48.zip | |
Auto merge of #6325 - flip1995:rustup, r=flip1995
Rustup r? `@ghost` changelog: none
| -rw-r--r-- | clippy_lints/src/attrs.rs | 2 | ||||
| -rw-r--r-- | clippy_lints/src/loops.rs | 2 | ||||
| -rw-r--r-- | clippy_lints/src/utils/ast_utils.rs | 2 | ||||
| -rw-r--r-- | clippy_lints/src/utils/attrs.rs | 2 | ||||
| -rw-r--r-- | clippy_lints/src/utils/mod.rs | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/clippy_lints/src/attrs.rs b/clippy_lints/src/attrs.rs index a004abb58b8..55904a0ec0a 100644 --- a/clippy_lints/src/attrs.rs +++ b/clippy_lints/src/attrs.rs @@ -588,7 +588,7 @@ impl EarlyLintPass for EarlyAttributes { fn check_empty_line_after_outer_attr(cx: &EarlyContext<'_>, item: &rustc_ast::Item) { for attr in &item.attrs { - let attr_item = if let AttrKind::Normal(ref attr) = attr.kind { + let attr_item = if let AttrKind::Normal(ref attr, _) = attr.kind { attr } else { return; diff --git a/clippy_lints/src/loops.rs b/clippy_lints/src/loops.rs index b246245af24..0d31e9cfc3d 100644 --- a/clippy_lints/src/loops.rs +++ b/clippy_lints/src/loops.rs @@ -3087,7 +3087,7 @@ impl<'tcx> Visitor<'tcx> for IterFunctionVisitor { } } -/// Detect the occurences of calls to `iter` or `into_iter` for the +/// Detect the occurrences of calls to `iter` or `into_iter` for the /// given identifier fn detect_iter_and_into_iters<'tcx>(block: &'tcx Block<'tcx>, identifier: Ident) -> Option<Vec<IterFunction>> { let mut visitor = IterFunctionVisitor { diff --git a/clippy_lints/src/utils/ast_utils.rs b/clippy_lints/src/utils/ast_utils.rs index 0e9feef3746..b68e33f101d 100644 --- a/clippy_lints/src/utils/ast_utils.rs +++ b/clippy_lints/src/utils/ast_utils.rs @@ -509,7 +509,7 @@ pub fn eq_attr(l: &Attribute, r: &Attribute) -> bool { l.style == r.style && match (&l.kind, &r.kind) { (DocComment(l1, l2), DocComment(r1, r2)) => l1 == r1 && l2 == r2, - (Normal(l), Normal(r)) => eq_path(&l.path, &r.path) && eq_mac_args(&l.args, &r.args), + (Normal(l, _), Normal(r, _)) => eq_path(&l.path, &r.path) && eq_mac_args(&l.args, &r.args), _ => false, } } diff --git a/clippy_lints/src/utils/attrs.rs b/clippy_lints/src/utils/attrs.rs index a3975683cb3..e6d41341a55 100644 --- a/clippy_lints/src/utils/attrs.rs +++ b/clippy_lints/src/utils/attrs.rs @@ -57,7 +57,7 @@ pub fn get_attr<'a>( name: &'static str, ) -> impl Iterator<Item = &'a ast::Attribute> { attrs.iter().filter(move |attr| { - let attr = if let ast::AttrKind::Normal(ref attr) = attr.kind { + let attr = if let ast::AttrKind::Normal(ref attr, _) = attr.kind { attr } else { return false; diff --git a/clippy_lints/src/utils/mod.rs b/clippy_lints/src/utils/mod.rs index cba3a050249..253b7823bd9 100644 --- a/clippy_lints/src/utils/mod.rs +++ b/clippy_lints/src/utils/mod.rs @@ -1385,7 +1385,7 @@ pub fn is_must_use_func_call(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool { pub fn is_no_std_crate(krate: &Crate<'_>) -> bool { krate.item.attrs.iter().any(|attr| { - if let ast::AttrKind::Normal(ref attr) = attr.kind { + if let ast::AttrKind::Normal(ref attr, _) = attr.kind { attr.path == symbol::sym::no_std } else { false |
