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

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

commit c88cc0aa644836c361ce5d8ff5225a9c12333dea
Merge: 65a06a81758 5b8502d862f
Author: bors[bot] <26634292+bors[bot]@users.noreply.github.com>
Date:   Wed Jun 29 09:02:29 2022 +0000

    Merge #1342
    
    1342: Refactor name-resolution pass r=philberty a=philberty
    
    This is a patch series which cleans up the code in the name resolution pass. Prior to
    #1307 we used to build up canonical path segments to do name resolution of types
    and paths, this lead to confusing code in how we handle impl blocks Self type and
    in general. This fixes that confusion to make the code more maintainable.
    
    
    Co-authored-by: Philip Herron <philip.herron@embecosm.com>

Diff:

 gcc/rust/Make-lang.in                              |   1 +
 gcc/rust/resolve/rust-ast-resolve-base.cc          |   2 +-
 gcc/rust/resolve/rust-ast-resolve-base.h           |   8 +-
 gcc/rust/resolve/rust-ast-resolve-expr.cc          | 155 ++++-----
 gcc/rust/resolve/rust-ast-resolve-expr.h           |  15 +-
 gcc/rust/resolve/rust-ast-resolve-implitem.h       |  29 +-
 gcc/rust/resolve/rust-ast-resolve-item.cc          | 285 ++++++++--------
 gcc/rust/resolve/rust-ast-resolve-item.h           |  16 +-
 gcc/rust/resolve/rust-ast-resolve-path.cc          |  38 +--
 gcc/rust/resolve/rust-ast-resolve-path.h           |   8 +-
 gcc/rust/resolve/rust-ast-resolve-pattern.cc       |  22 +-
 gcc/rust/resolve/rust-ast-resolve-pattern.h        |  24 +-
 gcc/rust/resolve/rust-ast-resolve-stmt.h           |  90 ++---
 .../resolve/rust-ast-resolve-struct-expr-field.cc  |  61 ++++
 .../resolve/rust-ast-resolve-struct-expr-field.h   |  18 +-
 gcc/rust/resolve/rust-ast-resolve-toplevel.h       |  47 ++-
 gcc/rust/resolve/rust-ast-resolve-type.cc          | 362 +++++++++------------
 gcc/rust/resolve/rust-ast-resolve-type.h           | 291 ++++-------------
 gcc/rust/resolve/rust-ast-resolve.cc               |  97 ------
 gcc/rust/resolve/rust-ast-verify-assignee.h        |   4 +-
 gcc/rust/resolve/rust-name-resolver.cc             |  35 --
 gcc/rust/resolve/rust-name-resolver.h              |  10 -
 gcc/rust/util/rust-canonical-path.h                |   8 +
 23 files changed, 620 insertions(+), 1006 deletions(-)


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

only message in thread, other threads:[~2022-06-29 10:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-29 10:28 [gcc/devel/rust/master] Merge #1342 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).