public inbox for gcc-rust@gcc.gnu.org
 help / color / mirror / Atom feed
From: Arthur Cohen <arthur.cohen@embecosm.com>
To: Jakub Jelinek <jakub@redhat.com>,
	Philip Herron <herron.philip@googlemail.com>
Cc: gcc-patches@gcc.gnu.org, gcc-rust@gcc.gnu.org
Subject: Re: [PATCH] gccrs: Avoid *.bak suffixed tests - use dg-skip-if instead
Date: Thu, 15 Feb 2024 14:12:48 +0100	[thread overview]
Message-ID: <f41f00e1-c575-402c-b4eb-52f40d8100d0@embecosm.com> (raw)
In-Reply-To: <Zc3VI3lzUK/y/Xcj@tucnak>

Hi Jakub,

On 2/15/24 10:10, Jakub Jelinek wrote:
> On Fri, Feb 09, 2024 at 11:03:38AM +0100, Jakub Jelinek wrote:
>> On Wed, Feb 07, 2024 at 12:43:59PM +0100, arthur.cohen@embecosm.com wrote:
>>> From: Philip Herron <herron.philip@googlemail.com>
>>>
>>> This patch introduces one regression because generics are getting better
>>> understood over time. The code here used to apply generics with the same
>>> symbol from previous segments which was a bit of a hack with out limited
>>> inference variable support. The regression looks like it will be related
>>> to another issue which needs to default integer inference variables much
>>> more aggresivly to default integer.
>>>
>>> Fixes #2723
>>>
>>> gcc/rust/ChangeLog:
>>>
>>> 	* typecheck/rust-hir-type-check-path.cc (TypeCheckExpr::resolve_segments): remove hack
>>>
>>> gcc/testsuite/ChangeLog:
>>>
>>> 	* rust/compile/issue-1773.rs: Moved to...
>>> 	* rust/compile/issue-1773.rs.bak: ...here.
>>
>> Please don't use such suffixes in the testsuite.
>> Either delete the testcase, or xfail it somehow until the bug is fixed.
> 
> To be precise, I have scripts to look for backup files in the tree (*~,
> *.bak, *.orig, *.rej etc.) and this stands in the way several times a day.
> 
> Here is a fix for that in patch form, tested on x86_64-linux with
> make check-rust RUNTESTFLAGS='compile.exp=issue-1773.rs'
> Ok for trunk? >
> 2024-02-15  Jakub Jelinek  <jakub@redhat.com>
> 
> 	* rust/compile/issue-1773.rs.bak: Rename to ...
> 	* rust/compile/issue-1773.rs: ... this.  Add dg-skip-if directive.
> 
> diff --git a/gcc/testsuite/rust/compile/issue-1773.rs.bak b/gcc/testsuite/rust/compile/issue-1773.rs
> similarity index 89%
> rename from gcc/testsuite/rust/compile/issue-1773.rs.bak
> rename to gcc/testsuite/rust/compile/issue-1773.rs
> index a4542aea00b..468497a4792 100644
> --- a/gcc/testsuite/rust/compile/issue-1773.rs.bak
> +++ b/gcc/testsuite/rust/compile/issue-1773.rs
> @@ -1,4 +1,5 @@
>   #[lang = "sized"]
> +// { dg-skip-if "" { *-*-* } }
>   pub trait Sized {}
>   
>   trait Foo<T> {
> 
> 	Jakub
> 


Looks good to me, thanks for taking the time! OK for trunk.

Best,

Arthur

  reply	other threads:[~2024-02-15 12:12 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-07 11:43 [COMMITTED 01/25] gccrs: Parse normal functions with `self` parameter correctly arthur.cohen
2024-02-07 11:43 ` [COMMITTED 02/25] gccrs: Implement quick-check for Unicode arthur.cohen
2024-02-07 11:43 ` [COMMITTED 03/25] gccrs: Typecheck: lifetime interning and resolution tool arthur.cohen
2024-02-07 11:43 ` [COMMITTED 04/25] gccrs: TyTy: Region (lifetime) representation arthur.cohen
2024-02-07 11:43 ` [COMMITTED 05/25] gccrs: HIR: Add mising getter arthur.cohen
2024-02-07 11:43 ` [COMMITTED 06/25] gccrs: Typecheck: add regions (lifetimes) to TyTy arthur.cohen
2024-02-07 11:43 ` [COMMITTED 07/25] gccrs: TyTy: Store region constraints arthur.cohen
2024-02-07 15:26   ` Bernhard Reutner-Fischer
2024-02-07 14:46     ` Arthur Cohen
2024-02-07 11:43 ` [COMMITTED 08/25] gccrs: TyTy: Store reference to type before any substitutions arthur.cohen
2024-02-07 11:43 ` [COMMITTED 09/25] gccrs: Set the default ABI to C for extern blocks and extern functions arthur.cohen
2024-02-07 11:43 ` [COMMITTED 10/25] gccrs: add testcase to prove issue has already been fixed arthur.cohen
2024-02-07 11:43 ` [COMMITTED 11/25] gccrs: add test cases to prove type inference is working arthur.cohen
2024-02-07 11:43 ` [COMMITTED 12/25] gccrs: Fix ICE accessing empty vector without check arthur.cohen
2024-02-07 11:43 ` [COMMITTED 13/25] gccrs: remove old generics hack to reuse generic symbols from previous seg arthur.cohen
2024-02-09 10:03   ` Jakub Jelinek
2024-02-15  9:10     ` [PATCH] gccrs: Avoid *.bak suffixed tests - use dg-skip-if instead Jakub Jelinek
2024-02-15 13:12       ` Arthur Cohen [this message]
2024-02-07 11:44 ` [COMMITTED 14/25] gccrs: remove similar hack in type paths as we had in path expressions arthur.cohen
2024-02-07 11:44 ` [COMMITTED 15/25] gccrs: refactor inference variable computation into a seperate method arthur.cohen
2024-02-07 11:44 ` [COMMITTED 16/25] gccrs: Move the Implementation of implitem lowering into its own file arthur.cohen
2024-02-07 11:44 ` [COMMITTED 17/25] gccrs: Add testcase to show issue is already fixed arthur.cohen
2024-02-07 11:44 ` [COMMITTED 18/25] gccrs: fix bug in pattern check for tuples arthur.cohen
2024-02-07 11:44 ` [COMMITTED 19/25] gccrs: Use AssociatedItem in place of TraitItem arthur.cohen
2024-02-07 11:44 ` [COMMITTED 20/25] gccrs: Add checks for Trait functions arthur.cohen
2024-02-07 11:44 ` [COMMITTED 21/25] gccrs: Add missing visitors for AST::Function arthur.cohen
2024-02-07 11:44 ` [COMMITTED 22/25] gccrs: Fix inconsistent formatting arthur.cohen
2024-02-07 11:44 ` [COMMITTED 23/25] gccrs: Parse trait functions as `AST::Function` arthur.cohen
2024-02-07 11:44 ` [COMMITTED 24/25] gccrs: Remove obsolete classes and functions arthur.cohen
2024-02-07 11:44 ` [COMMITTED 25/25] gccrs: Fix macro parsing for trait items arthur.cohen

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=f41f00e1-c575-402c-b4eb-52f40d8100d0@embecosm.com \
    --to=arthur.cohen@embecosm.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=gcc-rust@gcc.gnu.org \
    --cc=herron.philip@googlemail.com \
    --cc=jakub@redhat.com \
    /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).