aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/ast/rust-expr.h
diff options
context:
space:
mode:
authorSimplyTheOther <simplytheother@gmail.com>2020-12-22 12:17:34 +0800
committerSimplyTheOther <simplytheother@gmail.com>2020-12-22 19:24:37 +0800
commit627121b6996146d7b14f2ad848f416682b1ce0fe (patch)
treea3681b6a59e597860e51cfb742b866c64533efd0 /gcc/rust/ast/rust-expr.h
parent30dd20c0098948de74f6a18978e78e2950782975 (diff)
downloadgcc-627121b6996146d7b14f2ad848f416682b1ce0fe.zip
gcc-627121b6996146d7b14f2ad848f416682b1ce0fe.tar.gz
gcc-627121b6996146d7b14f2ad848f416682b1ce0fe.tar.bz2
Added code to expand cfg! macros
Moved function body to prevent compile issues Moved around some definitions in rust-ast.h in attempt to prevent compile error
Diffstat (limited to 'gcc/rust/ast/rust-expr.h')
-rw-r--r--gcc/rust/ast/rust-expr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-expr.h b/gcc/rust/ast/rust-expr.h
index de011c1..89718bc 100644
--- a/gcc/rust/ast/rust-expr.h
+++ b/gcc/rust/ast/rust-expr.h
@@ -121,6 +121,8 @@ public:
* cfg */
bool check_cfg_predicate (const Session &) const override { return false; }
+ bool is_meta_item () const override { return false; }
+
protected:
/* Use covariance to implement clone function as returning this object rather
* than base */