From 09dd2bc388c4a170da93828e779d330421dd28de Mon Sep 17 00:00:00 2001 From: David Rosca Date: Tue, 12 Aug 2025 17:47:46 +0200 Subject: [PATCH] rusticl/ptr: Fix hidden lifetime warning error: hiding a lifetime that's elided elsewhere is confusing --> ../src/gallium/frontends/rusticl/util/ptr.rs:166:18 | 166 | pub fn entry(&mut self, ptr: P) -> Entry { | ^^^^^^^^^ ----------- the same lifetime is hidden here | | | the lifetime is elided here Reviewed-by: Karol Herbst Cc: mesa-stable Part-of: --- src/gallium/frontends/rusticl/util/ptr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/frontends/rusticl/util/ptr.rs b/src/gallium/frontends/rusticl/util/ptr.rs index c9462c00862..891d39f14c4 100644 --- a/src/gallium/frontends/rusticl/util/ptr.rs +++ b/src/gallium/frontends/rusticl/util/ptr.rs @@ -163,7 +163,7 @@ where self.ptrs.contains_key(&ptr) } - pub fn entry(&mut self, ptr: P) -> Entry { + pub fn entry(&mut self, ptr: P) -> Entry<'_, P, T> { self.ptrs.entry(ptr) }