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

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

commit d4434b511a4e650e95c7a1de6810d8748c5d8a70
Merge: f2aee09a0b7 5aa411c5372
Author: bors[bot] <26634292+bors[bot]@users.noreply.github.com>
Date:   Wed May 11 17:12:51 2022 +0000

    Merge #1244
    
    1244: Allow match on integer and char types r=dafaust a=dafaust
    
    Enable compiling match expressions on other primitive types like `i32`, `usize` and `char`.
    
    
    Co-authored-by: David Faust <david.faust@oracle.com>

Diff:

 gcc/rust/backend/rust-compile-expr.cc             | 14 +++-
 gcc/rust/backend/rust-compile-pattern.cc          | 11 +++
 gcc/rust/typecheck/rust-tyty.cc                   | 20 +++++
 gcc/rust/typecheck/rust-tyty.h                    |  3 +
 gcc/testsuite/rust/execute/torture/match_byte1.rs | 49 ++++++++++++
 gcc/testsuite/rust/execute/torture/match_char1.rs | 49 ++++++++++++
 gcc/testsuite/rust/execute/torture/match_int1.rs  | 94 +++++++++++++++++++++++
 7 files changed, 237 insertions(+), 3 deletions(-)


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

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