diff options
| author | bors <bors@rust-lang.org> | 2020-03-16 12:11:00 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-03-16 12:11:00 +0000 |
| commit | d556bb73df16f72fc5a169b4fa7d4ce79ecd76a2 (patch) | |
| tree | 2cdbe871989cf48bb5418e731fcf34e3f0e5c013 /clippy_lints/src/utils/mod.rs | |
| parent | d8bcdac9de7882cbbffa7e02341ca32870d54017 (diff) | |
| parent | ba0884bee37dc386116a8ba87c33a602c1864d68 (diff) | |
Auto merge of #5321 - matthiaskrgr:rustup_31, r=phansch
rustup https://github.com/rust-lang/rust/pull/68944 changelog: none
Diffstat (limited to 'clippy_lints/src/utils/mod.rs')
| -rw-r--r-- | clippy_lints/src/utils/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/utils/mod.rs b/clippy_lints/src/utils/mod.rs index e32164c8bb1..62c47f0afd1 100644 --- a/clippy_lints/src/utils/mod.rs +++ b/clippy_lints/src/utils/mod.rs @@ -479,7 +479,7 @@ impl<'tcx> Visitor<'tcx> for ContainsName { self.result = true; } } - fn nested_visit_map(&mut self) -> NestedVisitorMap<'_, Self::Map> { + fn nested_visit_map(&mut self) -> NestedVisitorMap<Self::Map> { NestedVisitorMap::None } } @@ -1355,7 +1355,7 @@ pub fn is_must_use_func_call(cx: &LateContext<'_, '_>, expr: &Expr<'_>) -> bool } pub fn is_no_std_crate(krate: &Crate<'_>) -> bool { - krate.attrs.iter().any(|attr| { + krate.item.attrs.iter().any(|attr| { if let ast::AttrKind::Normal(ref attr) = attr.kind { attr.path == symbol::sym::no_std } else { |
