Skip to content

Commit 3cdc951

Browse files
committed
Auto merge of rust-lang#124401 - oli-obk:some_hir_cleanups, r=cjgillot
Some hir cleanups It seemed odd to not put `AnonConst` in the arena, compared with the other types that we did put into an arena. This way we can also give it a `Span` without growing a lot of other HIR data structures because of the extra field. r? compiler
2 parents 80c6f8f + b1a4f87 commit 3cdc951

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_utils/src/hir_utils.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ impl HirEqInterExpr<'_, '_, '_> {
224224
})
225225
}
226226

227-
pub fn eq_array_length(&mut self, left: ArrayLen, right: ArrayLen) -> bool {
227+
pub fn eq_array_length(&mut self, left: ArrayLen<'_>, right: ArrayLen<'_>) -> bool {
228228
match (left, right) {
229229
(ArrayLen::Infer(..), ArrayLen::Infer(..)) => true,
230230
(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> {
11161116
}
11171117
}
11181118

1119-
pub fn hash_array_length(&mut self, length: ArrayLen) {
1119+
pub fn hash_array_length(&mut self, length: ArrayLen<'_>) {
11201120
match length {
11211121
ArrayLen::Infer(..) => {},
11221122
ArrayLen::Body(anon_const) => self.hash_body(anon_const.body),

0 commit comments

Comments
 (0)