public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Thomas Schwinge <tschwinge@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc/devel/rust/master] Merge #738
Date: Wed,  8 Jun 2022 11:39:23 +0000 (GMT)	[thread overview]
Message-ID: <20220608113923.09077396E84D@sourceware.org> (raw)

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(-)


                 reply	other threads:[~2022-06-08 11:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220608113923.09077396E84D@sourceware.org \
    --to=tschwinge@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).