public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] Merge #1290 #1291 #1294
@ 2022-06-08 12:52 Thomas Schwinge
0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-06-08 12:52 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:957914b4284213b1d72c9c4210892367acaf1419
commit 957914b4284213b1d72c9c4210892367acaf1419
Merge: 664bd46f4cf fb2fc585fdc a89eb96d79e 8d1f5f99484
Author: bors[bot] <26634292+bors[bot]@users.noreply.github.com>
Date: Fri Jun 3 09:29:34 2022 +0000
Merge #1290 #1291 #1294
1290: Reformat copyright header in rust-parse-impl.h r=philberty a=philberty
1291: Fix bad impl item overlap check r=philberty a=philberty
This issue here was the equality checks for reference
and pointer types did not check the mutability.
Fixes #1289
1294: Add new mappings for items within a module r=philberty a=philberty
This patch adds two new interfaces to the mappings class.
- Lookup the child items within a module
- Lookup the parent module id from the child item id
Each of these API's are going to be required so that we can resolve two new
types of path segment:
super::foo::bar
Where we need to be able to lookup the super module node id from the
current scope node id. To then lookup the children within that scope. The
other path is simpler such as: crate::foo::bar. Where we lookup the items
within the current Crate NodeId and follow on as normal.
Addresses #1227
Co-authored-by: Philip Herron <philip.herron@embecosm.com>
Diff:
gcc/rust/parse/rust-parse-impl.h | 26 +++++++++--------
gcc/rust/resolve/rust-ast-resolve-toplevel.h | 13 +++++++++
gcc/rust/typecheck/rust-tyty.cc | 6 ++++
gcc/rust/util/rust-hir-map.cc | 41 +++++++++++++++++++++++++++
gcc/rust/util/rust-hir-map.h | 10 +++++++
gcc/rust/util/rust-lang-item.h | 7 +++++
gcc/testsuite/rust/compile/issue-1289.rs | 42 ++++++++++++++++++++++++++++
7 files changed, 133 insertions(+), 12 deletions(-)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-08 12:52 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:52 [gcc/devel/rust/master] Merge #1290 #1291 #1294 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).