aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/hir/rust-ast-lower-item.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rust/hir/rust-ast-lower-item.h')
-rw-r--r--gcc/rust/hir/rust-ast-lower-item.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/rust/hir/rust-ast-lower-item.h b/gcc/rust/hir/rust-ast-lower-item.h
index 30bd896..55c8e8a 100644
--- a/gcc/rust/hir/rust-ast-lower-item.h
+++ b/gcc/rust/hir/rust-ast-lower-item.h
@@ -44,6 +44,10 @@ public:
{
ASTLoweringItem resolver;
item->accept_vis (resolver);
+
+ if (resolver.translated != nullptr)
+ resolver.handle_outer_attributes (*resolver.translated);
+
return resolver.translated;
}