diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-03-17 16:04:23 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-17 16:04:23 +0000 |
commit | 1bb9a29688ab4ddfec7f8d36ca2cee63c5f258d2 (patch) | |
tree | 7fb389c42bf54536a486bd5713ef64f9623a2d82 /gcc/rust/ast/rust-macro.h | |
parent | 1a14348afefc62313e38156fde768744378f9ebf (diff) | |
parent | a7ef6f98be0e25187ad1690428aafc17e19b5751 (diff) | |
download | gcc-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.h | 6 |
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); |