diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-11-09 19:45:08 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 19:13:14 +0100 |
commit | c1d722aa6f011a1584b1815bfbfb8d2733c1ba34 (patch) | |
tree | 00f3b4324e2c6c914cfc76387106325400f228aa /gcc/ada/gcc-interface/utils.cc | |
parent | 119e0be8b6eea63a95c89d449c38aa133e6ad5ab (diff) | |
download | gcc-c1d722aa6f011a1584b1815bfbfb8d2733c1ba34.zip gcc-c1d722aa6f011a1584b1815bfbfb8d2733c1ba34.tar.gz gcc-c1d722aa6f011a1584b1815bfbfb8d2733c1ba34.tar.bz2 |
gccrs: Add trait context to ContextualASTVisitor
Some construct are forbidden in trait context (eg. pub, async...) and
we'll need to reject those. To do so we need to identify a trait context.
gcc/rust/ChangeLog:
* ast/rust-ast-visitor.cc (ContextualASTVisitor::visit): Push the new
trait context when visiting a trait.
* ast/rust-ast-visitor.h: Add visit function prototype and TRAIT
context.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/ada/gcc-interface/utils.cc')
0 files changed, 0 insertions, 0 deletions