diff options
Diffstat (limited to 'gcc/rust/parse/rust-parse-impl.h')
-rw-r--r-- | gcc/rust/parse/rust-parse-impl.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/rust/parse/rust-parse-impl.h b/gcc/rust/parse/rust-parse-impl.h index 5d4865d..a2096f7 100644 --- a/gcc/rust/parse/rust-parse-impl.h +++ b/gcc/rust/parse/rust-parse-impl.h @@ -5388,12 +5388,12 @@ Parser<ManagedTokenSource>::parse_impl (AST::Visibility vis, AST::AttrVec inner_attrs = parse_inner_attributes (); // parse inherent impl items - std::vector<std::unique_ptr<AST::InherentImplItem>> impl_items; + std::vector<std::unique_ptr<AST::AssociatedItem>> impl_items; const_TokenPtr t = lexer.peek_token (); while (t->get_id () != RIGHT_CURLY) { - std::unique_ptr<AST::InherentImplItem> impl_item + std::unique_ptr<AST::AssociatedItem> impl_item = parse_inherent_impl_item (); if (impl_item == nullptr) @@ -5512,7 +5512,7 @@ Parser<ManagedTokenSource>::parse_impl (AST::Visibility vis, // Parses a single inherent impl item (item inside an inherent impl block). template <typename ManagedTokenSource> -std::unique_ptr<AST::InherentImplItem> +std::unique_ptr<AST::AssociatedItem> Parser<ManagedTokenSource>::parse_inherent_impl_item () { // parse outer attributes (if they exist) @@ -5629,7 +5629,7 @@ Parser<ManagedTokenSource>::parse_inherent_impl_item () // InherentImplItem is this specialisation of the template while TraitImplItem // will be the other. template <typename ManagedTokenSource> -std::unique_ptr<AST::InherentImplItem> +std::unique_ptr<AST::AssociatedItem> Parser<ManagedTokenSource>::parse_inherent_impl_function_or_method ( AST::Visibility vis, AST::AttrVec outer_attrs) { |