public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] Merge #953
@ 2022-06-08 12:11 Thomas Schwinge
0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-06-08 12:11 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:e0f261f1aea2c9968a07442ca5d4eab813f86a58
commit e0f261f1aea2c9968a07442ca5d4eab813f86a58
Merge: 265c223766f 865aa0aeb56
Author: bors[bot] <26634292+bors[bot]@users.noreply.github.com>
Date: Tue Feb 22 16:25:07 2022 +0000
Merge #953
953: Refactor lang item mappings r=philberty a=philberty
This refactors how we find our lang items so that during HIR lowering
we have a generic outer attributes handler on Items. The old code only
done lang item mappings during the type check pass and assumed all
lang items are Traits which is not the case. To implement slices range
syntax actually map to structs within libcore/ops/range.rs which have
lang items on structs. This means we can have lang items on any Item.
Co-authored-by: Philip Herron <philip.herron@embecosm.com>
Diff:
gcc/rust/Make-lang.in | 1 +
gcc/rust/hir/rust-ast-lower-base.h | 17 +-
gcc/rust/hir/rust-ast-lower-item.h | 4 +
gcc/rust/hir/rust-ast-lower.cc | 64 ++++++
gcc/rust/typecheck/rust-hir-trait-resolve.h | 25 ---
gcc/rust/util/rust-attributes.cc | 61 +++++
gcc/rust/util/rust-attributes.h | 70 ++++++
gcc/rust/util/rust-hir-map.h | 270 +---------------------
gcc/rust/util/rust-lang-item.h | 334 ++++++++++++++++++++++++++++
9 files changed, 551 insertions(+), 295 deletions(-)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-08 12:11 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:11 [gcc/devel/rust/master] Merge #953 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).