public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] Merge #738
@ 2022-06-08 11:39 Thomas Schwinge
0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-06-08 11:39 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:e5a7ee485675419eaf4e47adf112a27f403cc1a0
commit e5a7ee485675419eaf4e47adf112a27f403cc1a0
Merge: 3057d98a4e3 c0669ceb147
Author: bors[bot] <26634292+bors[bot]@users.noreply.github.com>
Date: Thu Oct 14 09:08:10 2021 +0000
Merge #738
738: Refactor HIR to use new Mutability enum r=philberty a=dafaust
Introduce a new header rust/util/rust-common.h and move the enum
previously Rust::TyTy::TypeMutability there as Rust::Mutability.
Update the following objects to use Mutability enum rather than a bool:
- HIR::IdentifierPattern
- HIR::ReferencePattern
- HIR::StructPatternFieldIdent
- HIR::BorrowExpr
- HIR::RawPointerType
- HIR::ReferenceType
- HIR::StaticItem
- HIR::ExternalStaticItem
Also add a HIR::SelfParam::get_mut () helper, mapping its internal
custom mutability to the common Rust::Mutability.
Fixes: #731
Co-authored-by: David Faust <david.faust@oracle.com>
Diff:
gcc/rust/backend/rust-compile-fnparam.h | 2 +-
gcc/rust/backend/rust-compile-var-decl.h | 2 +-
gcc/rust/hir/rust-ast-lower-expr.h | 9 +++---
gcc/rust/hir/rust-ast-lower-extern.h | 10 +++---
gcc/rust/hir/rust-ast-lower-item.h | 11 ++++---
gcc/rust/hir/rust-ast-lower-pattern.h | 4 ++-
gcc/rust/hir/rust-ast-lower-type.h | 8 +++--
gcc/rust/hir/tree/rust-hir-expr.h | 10 +++---
gcc/rust/hir/tree/rust-hir-full-test.cc | 14 ++++-----
gcc/rust/hir/tree/rust-hir-item.h | 36 +++++++++++++++-------
gcc/rust/hir/tree/rust-hir-pattern.h | 33 ++++++++++++--------
gcc/rust/hir/tree/rust-hir-type.h | 37 ++++++++++++-----------
gcc/rust/typecheck/rust-hir-dot-operator.h | 4 +--
gcc/rust/typecheck/rust-hir-type-check-expr.h | 8 ++---
gcc/rust/typecheck/rust-hir-type-check-implitem.h | 8 ++---
gcc/rust/typecheck/rust-hir-type-check-type.h | 8 ++---
gcc/rust/typecheck/rust-hir-type-check.cc | 7 +++--
gcc/rust/typecheck/rust-tyty.h | 29 ++++++++----------
gcc/rust/util/rust-common.h | 34 +++++++++++++++++++++
19 files changed, 163 insertions(+), 111 deletions(-)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-08 11:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-08 11:39 [gcc/devel/rust/master] Merge #738 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).