diff options
| author | Philipp Krones <hello@philkrones.com> | 2023-08-11 14:05:13 +0200 |
|---|---|---|
| committer | Philipp Krones <hello@philkrones.com> | 2023-08-11 14:05:13 +0200 |
| commit | f730a2655a0ea22da4cf104d3e97f9fa17c0658f (patch) | |
| tree | a93171179363bddc55403723e0b625e9c9758f91 /clippy_lints/src/utils/internal_lints | |
| parent | a1ab2d765f8ee3c7735c5573e023f4f4057159e1 (diff) | |
Merge commit '1e8fdf492808a25d78a97e1242b835ace9924e4d' into clippyup
Diffstat (limited to 'clippy_lints/src/utils/internal_lints')
| -rw-r--r-- | clippy_lints/src/utils/internal_lints/invalid_paths.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/utils/internal_lints/invalid_paths.rs b/clippy_lints/src/utils/internal_lints/invalid_paths.rs index e4906944c8d..4ed985f54d0 100644 --- a/clippy_lints/src/utils/internal_lints/invalid_paths.rs +++ b/clippy_lints/src/utils/internal_lints/invalid_paths.rs @@ -34,7 +34,7 @@ impl<'tcx> LateLintPass<'tcx> for InvalidPaths { let mod_name = &cx.tcx.item_name(local_def_id.to_def_id()); if_chain! { if mod_name.as_str() == "paths"; - if let hir::ItemKind::Const(ty, body_id) = item.kind; + if let hir::ItemKind::Const(ty, _, body_id) = item.kind; let ty = hir_ty_to_ty(cx.tcx, ty); if let ty::Array(el_ty, _) = &ty.kind(); if let ty::Ref(_, el_ty, _) = &el_ty.kind(); |
