diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-08-29 13:37:13 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2023-01-31 14:16:50 +0100 |
commit | 55fb35c51b2ee6b107204b6a02193cbeef077d01 (patch) | |
tree | db8b1c0c786e6899c768a6f5dd1c7595d6a13223 /gcc/rust/backend | |
parent | 7dc41901213d32ff9962f1d54cc6291c38d0e597 (diff) | |
download | gcc-55fb35c51b2ee6b107204b6a02193cbeef077d01.zip gcc-55fb35c51b2ee6b107204b6a02193cbeef077d01.tar.gz gcc-55fb35c51b2ee6b107204b6a02193cbeef077d01.tar.bz2 |
gccrs: ast: Only expand expressions and types if the kind is right
gcc/rust/ChangeLog:
* ast/rust-ast.h: Add assertions and accessors for fragment nodes.
* expand/rust-attribute-visitor.cc (AttrVisitor::visit): Fix expansion
context typo when visiting `InherentImpl` items.
(AttrVisitor::maybe_expand_expr): Use new Fragment accessor to fetch
properly typed node.
(AttrVisitor::maybe_expand_type): Likewise.
* expand/rust-macro-expand.cc (transcribe_type): Emit parse errors
when trying to parse a type.
Diffstat (limited to 'gcc/rust/backend')
0 files changed, 0 insertions, 0 deletions