diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2024-04-26 12:57:02 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2024-04-26 12:57:02 +0000 |
| commit | b1a4f8725795b3e7be5f461a937dbb8b35641013 (patch) | |
| tree | 14d56b6e39a0f560dc1f7bc11f7837c12c53d404 | |
| parent | 53b505697787679953da36f4736a66210e61fba8 (diff) | |
| download | rust-b1a4f8725795b3e7be5f461a937dbb8b35641013.tar.gz rust-b1a4f8725795b3e7be5f461a937dbb8b35641013.zip | |
put `hir::AnonConst` on the hir arena
| -rw-r--r-- | clippy_utils/src/hir_utils.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_utils/src/hir_utils.rs b/clippy_utils/src/hir_utils.rs index 07c443acb05..c921168df29 100644 --- a/clippy_utils/src/hir_utils.rs +++ b/clippy_utils/src/hir_utils.rs @@ -224,7 +224,7 @@ impl HirEqInterExpr<'_, '_, '_> { }) } - pub fn eq_array_length(&mut self, left: ArrayLen, right: ArrayLen) -> bool { + pub fn eq_array_length(&mut self, left: ArrayLen<'_>, right: ArrayLen<'_>) -> bool { match (left, right) { (ArrayLen::Infer(..), ArrayLen::Infer(..)) => true, (ArrayLen::Body(l_ct), ArrayLen::Body(r_ct)) => self.eq_body(l_ct.body, r_ct.body), @@ -1116,7 +1116,7 @@ impl<'a, 'tcx> SpanlessHash<'a, 'tcx> { } } - pub fn hash_array_length(&mut self, length: ArrayLen) { + pub fn hash_array_length(&mut self, length: ArrayLen<'_>) { match length { ArrayLen::Infer(..) => {}, ArrayLen::Body(anon_const) => self.hash_body(anon_const.body), |
