aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/ast/rust-macro.h
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-03-17 16:04:23 +0000
committerGitHub <noreply@github.com>2022-03-17 16:04:23 +0000
commit1bb9a29688ab4ddfec7f8d36ca2cee63c5f258d2 (patch)
tree7fb389c42bf54536a486bd5713ef64f9623a2d82 /gcc/rust/ast/rust-macro.h
parent1a14348afefc62313e38156fde768744378f9ebf (diff)
parenta7ef6f98be0e25187ad1690428aafc17e19b5751 (diff)
downloadgcc-1bb9a29688ab4ddfec7f8d36ca2cee63c5f258d2.zip
gcc-1bb9a29688ab4ddfec7f8d36ca2cee63c5f258d2.tar.gz
gcc-1bb9a29688ab4ddfec7f8d36ca2cee63c5f258d2.tar.bz2
Merge #1029
1029: Macro in trait impl r=CohenArthur a=CohenArthur Needs #1028 You can just review the last commit to avoid reviewing twice. Sorry about that! Co-authored-by: Arthur Cohen <arthur.cohen@embecosm.com>
Diffstat (limited to 'gcc/rust/ast/rust-macro.h')
-rw-r--r--gcc/rust/ast/rust-macro.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-macro.h b/gcc/rust/ast/rust-macro.h
index 1c5d102..5ecd5d7 100644
--- a/gcc/rust/ast/rust-macro.h
+++ b/gcc/rust/ast/rust-macro.h
@@ -460,6 +460,7 @@ class MacroInvocation : public TypeNoBounds,
public TraitItem,
public TraitImplItem,
public InherentImplItem,
+ public ExternalItem,
public ExprWithoutBlock
{
std::vector<Attribute> outer_attrs;
@@ -537,6 +538,11 @@ protected:
return clone_macro_invocation_impl ();
}
+ MacroInvocation *clone_external_item_impl () const final override
+ {
+ return clone_macro_invocation_impl ();
+ }
+
/*virtual*/ MacroInvocation *clone_macro_invocation_impl () const
{
return new MacroInvocation (*this);