Skip to content

Commit bd13a35

Browse files
committed
Auto merge of #6325 - flip1995:rustup, r=flip1995
Rustup r? `@ghost` changelog: none
2 parents c4fc076 + 92ece84 commit bd13a35

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

Diff for: clippy_lints/src/attrs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ impl EarlyLintPass for EarlyAttributes {
588588

589589
fn check_empty_line_after_outer_attr(cx: &EarlyContext<'_>, item: &rustc_ast::Item) {
590590
for attr in &item.attrs {
591-
let attr_item = if let AttrKind::Normal(ref attr) = attr.kind {
591+
let attr_item = if let AttrKind::Normal(ref attr, _) = attr.kind {
592592
attr
593593
} else {
594594
return;

Diff for: clippy_lints/src/loops.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3087,7 +3087,7 @@ impl<'tcx> Visitor<'tcx> for IterFunctionVisitor {
30873087
}
30883088
}
30893089

3090-
/// Detect the occurences of calls to `iter` or `into_iter` for the
3090+
/// Detect the occurrences of calls to `iter` or `into_iter` for the
30913091
/// given identifier
30923092
fn detect_iter_and_into_iters<'tcx>(block: &'tcx Block<'tcx>, identifier: Ident) -> Option<Vec<IterFunction>> {
30933093
let mut visitor = IterFunctionVisitor {

Diff for: clippy_lints/src/utils/ast_utils.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ pub fn eq_attr(l: &Attribute, r: &Attribute) -> bool {
509509
l.style == r.style
510510
&& match (&l.kind, &r.kind) {
511511
(DocComment(l1, l2), DocComment(r1, r2)) => l1 == r1 && l2 == r2,
512-
(Normal(l), Normal(r)) => eq_path(&l.path, &r.path) && eq_mac_args(&l.args, &r.args),
512+
(Normal(l, _), Normal(r, _)) => eq_path(&l.path, &r.path) && eq_mac_args(&l.args, &r.args),
513513
_ => false,
514514
}
515515
}

Diff for: clippy_lints/src/utils/attrs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ pub fn get_attr<'a>(
5757
name: &'static str,
5858
) -> impl Iterator<Item = &'a ast::Attribute> {
5959
attrs.iter().filter(move |attr| {
60-
let attr = if let ast::AttrKind::Normal(ref attr) = attr.kind {
60+
let attr = if let ast::AttrKind::Normal(ref attr, _) = attr.kind {
6161
attr
6262
} else {
6363
return false;

Diff for: clippy_lints/src/utils/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1385,7 +1385,7 @@ pub fn is_must_use_func_call(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool {
13851385

13861386
pub fn is_no_std_crate(krate: &Crate<'_>) -> bool {
13871387
krate.item.attrs.iter().any(|attr| {
1388-
if let ast::AttrKind::Normal(ref attr) = attr.kind {
1388+
if let ast::AttrKind::Normal(ref attr, _) = attr.kind {
13891389
attr.path == symbol::sym::no_std
13901390
} else {
13911391
false

0 commit comments

Comments
 (0)