public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] Merge #1191
@ 2022-06-08 12:42 Thomas Schwinge
0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-06-08 12:42 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:fb136314f9584744ccc7b09ace3cea99129b7cf4
commit fb136314f9584744ccc7b09ace3cea99129b7cf4
Merge: 27e562a2c07 98e1de2d8fd
Author: bors[bot] <26634292+bors[bot]@users.noreply.github.com>
Date: Mon May 2 14:32:12 2022 +0000
Merge #1191
1191: Resolve simple paths in use items r=CohenArthur a=CohenArthur
In order to resolve `SimplePath`s, we have to expand all paths present
in a `UseDeclaration` and resolve them. For example, we want to resolve
two paths with the following statement `use foo::bar::{baz, bul}`:
`foo::bar::baz` and `foo::bar::bul`
This also removes the prelude inclusion (`use std::prelude::v1::*`)
since we cannot resolve it (yet!)
Needs #1172 to compile
Adresses #1159
Adresses #1187
Co-authored-by: Arthur Cohen <arthur.cohen@embecosm.com>
Diff:
gcc/rust/ast/rust-ast.h | 2 +
gcc/rust/ast/rust-item.h | 57 +++++
gcc/rust/resolve/rust-ast-resolve-item.cc | 297 ++++++++++++++++++++++++-
gcc/rust/resolve/rust-ast-resolve-item.h | 11 +
gcc/rust/resolve/rust-ast-resolve-type.cc | 47 ++++
gcc/rust/resolve/rust-ast-resolve-type.h | 55 +----
gcc/rust/rust-lang.cc | 2 +
gcc/rust/rust-session-manager.cc | 36 +--
gcc/testsuite/rust/compile/torture/cfg_attr.rs | 2 +-
gcc/testsuite/rust/compile/use_1.rs | 16 ++
10 files changed, 455 insertions(+), 70 deletions(-)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-08 12:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-08 12:42 [gcc/devel/rust/master] Merge #1191 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).