public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] Merge #1580
@ 2022-10-14 15:58 Thomas Schwinge
  0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-10-14 15:58 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:fa0bd801922d095893c9318ad1d0c78141c05796

commit fa0bd801922d095893c9318ad1d0c78141c05796
Merge: c85492954de 6dca194d4b5
Author: bors[bot] <26634292+bors[bot]@users.noreply.github.com>
Date:   Fri Oct 14 14:41:18 2022 +0000

    Merge #1580
    
    1580: Add early name resolver r=CohenArthur a=CohenArthur
    
    This addresses our issue with name resolution (#1576) not acting on macros early enough but does not fix it yet.
    
    This name resolver performs the same macro name resolution as what was previously done by the AttrVisitor visitor and macro expander.
    
    It also resolves macro expressions in builtin-macros properly, as well as expanded AST nodes when necessary.
    
    Co-authored-by: Arthur Cohen <arthur.cohen@embecosm.com>

Diff:

 gcc/rust/Make-lang.in                        |    1 +
 gcc/rust/ast/rust-path.h                     |   17 +
 gcc/rust/expand/rust-attribute-visitor.cc    |   10 -
 gcc/rust/expand/rust-macro-builtins.cc       |    9 +-
 gcc/rust/expand/rust-macro-expand.cc         |   30 +-
 gcc/rust/expand/rust-macro-expand.h          |    4 +
 gcc/rust/resolve/rust-ast-resolve-item.cc    |    8 +
 gcc/rust/resolve/rust-early-name-resolver.cc | 1087 ++++++++++++++++++++++++++
 gcc/rust/resolve/rust-early-name-resolver.h  |  210 +++++
 gcc/rust/rust-session-manager.cc             |    4 +
 gcc/rust/util/rust-hir-map.cc                |   22 +
 gcc/rust/util/rust-hir-map.h                 |    6 +
 12 files changed, 1373 insertions(+), 35 deletions(-)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-10-14 15:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-14 15:58 [gcc/devel/rust/master] Merge #1580 Thomas Schwinge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).