diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2022-02-05 15:26:49 +0100 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2022-04-30 13:51:49 +0200 |
| commit | 71b4e2d852be70174579e7e5a96644418348a7da (patch) | |
| tree | 723592bfb1d152ab0732ae37d4245ace0847b1a3 /compiler/rustc_lint/src | |
| parent | 76d4862fdd131b6f79dc0a31857f888d26bcdb27 (diff) | |
| download | rust-71b4e2d852be70174579e7e5a96644418348a7da.tar.gz rust-71b4e2d852be70174579e7e5a96644418348a7da.zip | |
Box HIR Generics and Impl.
Diffstat (limited to 'compiler/rustc_lint/src')
| -rw-r--r-- | compiler/rustc_lint/src/builtin.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_lint/src/builtin.rs b/compiler/rustc_lint/src/builtin.rs index 68658e2616e..e097ab9d7fd 100644 --- a/compiler/rustc_lint/src/builtin.rs +++ b/compiler/rustc_lint/src/builtin.rs @@ -1199,8 +1199,8 @@ impl<'tcx> LateLintPass<'tcx> for InvalidNoMangleItems { }); } } - hir::ItemKind::Impl(hir::Impl { ref generics, items, .. }) => { - for it in items { + hir::ItemKind::Impl(hir::Impl { generics, items, .. }) => { + for it in *items { if let hir::AssocItemKind::Fn { .. } = it.kind { if let Some(no_mangle_attr) = cx .sess() |
