public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] Merge #920
@ 2022-06-08 12:06 Thomas Schwinge
  0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-06-08 12:06 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:b71cc52613219f353b054eb5520cd3886f354c10

commit b71cc52613219f353b054eb5520cd3886f354c10
Merge: 9023bb86873 c0e5ca327ba
Author: bors[bot] <26634292+bors[bot]@users.noreply.github.com>
Date:   Sat Feb 12 16:35:24 2022 +0000

    Merge #920
    
    920: Support deref_mut lang item during method resolution r=philberty a=philberty
    
    This adds in the lookups for the DEREF_MUT lang item for operator overloading
    this needs more testing to ensure the behaviour is correct and is the same as
    rustc.
    
    Fixes #890
    
    
    Co-authored-by: Philip Herron <philip.herron@embecosm.com>

Diff:

 gcc/rust/Make-lang.in                         |   1 +
 gcc/rust/backend/rust-compile-base.h          |   3 +
 gcc/rust/backend/rust-compile-expr.cc         |  39 +--
 gcc/rust/typecheck/rust-autoderef.cc          |  69 ++---
 gcc/rust/typecheck/rust-autoderef.h           |  29 ++-
 gcc/rust/typecheck/rust-hir-dot-operator.cc   | 359 ++++++++++++++++++++++++++
 gcc/rust/typecheck/rust-hir-dot-operator.h    | 270 +------------------
 gcc/rust/typecheck/rust-hir-type-check-expr.h |   1 +
 gcc/testsuite/rust/execute/torture/method3.rs |  78 ++++++
 gcc/testsuite/rust/execute/torture/method4.rs |  78 ++++++
 10 files changed, 605 insertions(+), 322 deletions(-)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-08 12:06 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:06 [gcc/devel/rust/master] Merge #920 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).