about summary refs log tree commit diff
path: root/compiler/rustc_hir_pretty
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2025-07-02 20:15:28 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2025-07-13 13:50:01 +0000
commit21fd82adbcaf322973ca6edb28a801be755a2225 (patch)
tree72cc0e11a515961cd20d6393d37bacaf5a1e10d5 /compiler/rustc_hir_pretty
parent5bd3841668f43626b89c9295de960cc7e2a3c2aa (diff)
downloadrust-21fd82adbcaf322973ca6edb28a801be755a2225.tar.gz
rust-21fd82adbcaf322973ca6edb28a801be755a2225.zip
Retire hir::*ItemRef.
Diffstat (limited to 'compiler/rustc_hir_pretty')
-rw-r--r--compiler/rustc_hir_pretty/src/lib.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/rustc_hir_pretty/src/lib.rs b/compiler/rustc_hir_pretty/src/lib.rs
index 42adbd922a0..2c13c9ef438 100644
--- a/compiler/rustc_hir_pretty/src/lib.rs
+++ b/compiler/rustc_hir_pretty/src/lib.rs
@@ -730,8 +730,8 @@ impl<'a> State<'a> {
 
                 self.space();
                 self.bopen(ib);
-                for impl_item in items {
-                    self.ann.nested(self, Nested::ImplItem(impl_item.id));
+                for &impl_item in items {
+                    self.ann.nested(self, Nested::ImplItem(impl_item));
                 }
                 self.bclose(item.span, cb);
             }
@@ -746,8 +746,8 @@ impl<'a> State<'a> {
                 self.print_where_clause(generics);
                 self.word(" ");
                 self.bopen(ib);
-                for trait_item in trait_items {
-                    self.ann.nested(self, Nested::TraitItem(trait_item.id));
+                for &trait_item in trait_items {
+                    self.ann.nested(self, Nested::TraitItem(trait_item));
                 }
                 self.bclose(item.span, cb);
             }