diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-07-12 08:11:55 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-12 08:11:55 +0000 |
commit | 6d2a3d03ad256ab924dfddb4d200d1b6c11c7410 (patch) | |
tree | aebc26759e1bcc81e8ae5cef3b8fdb198ee90fbd | |
parent | 4560f469ee33536cec6af0f8e5816ff97de60de0 (diff) | |
parent | 36bd4a5c85abc432a6c5a30ed32d8684675531db (diff) | |
download | gcc-6d2a3d03ad256ab924dfddb4d200d1b6c11c7410.zip gcc-6d2a3d03ad256ab924dfddb4d200d1b6c11c7410.tar.gz gcc-6d2a3d03ad256ab924dfddb4d200d1b6c11c7410.tar.bz2 |
Merge #560
560: Remove HIR MacroItem and other hir macro forward declarations r=philberty a=philberty
Remove trailing macro items from HIR
Fixes #69
Co-authored-by: Mark Wielaard <mark@klomp.org>
-rw-r--r-- | gcc/rust/hir/tree/rust-hir-expr.h | 3 | ||||
-rw-r--r-- | gcc/rust/hir/tree/rust-hir-item.h | 3 | ||||
-rw-r--r-- | gcc/rust/hir/tree/rust-hir-pattern.h | 2 | ||||
-rw-r--r-- | gcc/rust/hir/tree/rust-hir-type.h | 3 | ||||
-rw-r--r-- | gcc/rust/hir/tree/rust-hir.h | 11 |
5 files changed, 0 insertions, 22 deletions
diff --git a/gcc/rust/hir/tree/rust-hir-expr.h b/gcc/rust/hir/tree/rust-hir-expr.h index 681ccf8..2b1e938 100644 --- a/gcc/rust/hir/tree/rust-hir-expr.h +++ b/gcc/rust/hir/tree/rust-hir-expr.h @@ -3094,9 +3094,6 @@ protected: } }; -// Forward decl - defined in rust-macro.h -class MacroInvocation; - // An unsafe block HIR node class UnsafeBlockExpr : public ExprWithBlock { diff --git a/gcc/rust/hir/tree/rust-hir-item.h b/gcc/rust/hir/tree/rust-hir-item.h index 10b1f61..e7e110f 100644 --- a/gcc/rust/hir/tree/rust-hir-item.h +++ b/gcc/rust/hir/tree/rust-hir-item.h @@ -3020,9 +3020,6 @@ protected: }*/ }; -// Replaced with forward decls - defined in "rust-macro.h" -class MacroItem; -class MacroRulesDefinition; } // namespace HIR } // namespace Rust diff --git a/gcc/rust/hir/tree/rust-hir-pattern.h b/gcc/rust/hir/tree/rust-hir-pattern.h index 27cba7d..ac7155d 100644 --- a/gcc/rust/hir/tree/rust-hir-pattern.h +++ b/gcc/rust/hir/tree/rust-hir-pattern.h @@ -1152,8 +1152,6 @@ class PathPattern; class PathInExpression; class QualifiedPathInExpression; -// Replaced with forward decl - defined in rust-macro.h -class MacroInvocation; } // namespace HIR } // namespace Rust diff --git a/gcc/rust/hir/tree/rust-hir-type.h b/gcc/rust/hir/tree/rust-hir-type.h index 42fccb5..c4771b6 100644 --- a/gcc/rust/hir/tree/rust-hir-type.h +++ b/gcc/rust/hir/tree/rust-hir-type.h @@ -907,9 +907,6 @@ protected: } }; -// Forward decl - defined in rust-macro.h -class MacroInvocation; - /* TODO: possible types * struct type? * "enum" (tagged union) type? diff --git a/gcc/rust/hir/tree/rust-hir.h b/gcc/rust/hir/tree/rust-hir.h index 1819d17..7d53feb 100644 --- a/gcc/rust/hir/tree/rust-hir.h +++ b/gcc/rust/hir/tree/rust-hir.h @@ -613,17 +613,6 @@ protected: } }; -// A macro item HIR node - potentially abstract base class -class MacroItem : public Item -{ - /*public: - std::string as_string() const;*/ -protected: - MacroItem (Analysis::NodeMapping mappings, AST::AttrVec outer_attribs) - : Item (std::move (mappings), std::move (outer_attribs)) - {} -}; - // Item used in trait declarations - abstract base class class TraitItem { |