From patchwork Thu Aug 1 14:57:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arthur Cohen X-Patchwork-Id: 95064 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 55E6F386183A for ; Thu, 1 Aug 2024 15:36:16 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by sourceware.org (Postfix) with ESMTPS id 521973865C2D for ; Thu, 1 Aug 2024 15:00:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 521973865C2D Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embecosm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 521973865C2D Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::134 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722524486; cv=none; b=HUmTABVBEDVaedOFq5vQWVQ45mHZr7rJ9NsqOSiaRwSkGnc9CKFu7mTaMqqHYV1lIx97WRV38j9ZmoPnw+d6oZTiNqi91GXKn7znSRsgMI+ZPgmwOyR641chHm52SJ9jfBJZrWohaZjPzoFXPwApkF4Bhg2DcOFL6lVVI5MTqrQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722524486; c=relaxed/simple; bh=X1gmAhHsBwhlsn3ZJavYpWm+pT1XF6sTSbOi7a8lfmQ=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=VuzafftRIPkkED37T0uJxYIOGuGw4GjyQ3Epx///osZHhBzdPlrbw6Eg526eBxhZrEoem0dWkQF2tFkF2dpGKndJgisNzRBrE/YaezysZ1sHNEw0gA8lrclYyi/32BpbF1kPaxzgELnFbOHeT7z2+n8g0UaNkZXdViQRIP3yoeg= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-52f024f468bso10179951e87.1 for ; Thu, 01 Aug 2024 08:00:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; t=1722524433; x=1723129233; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=OGdxDj8erNo60FDqnEz2+G+lkRTNGK1Hx7OFC+Sdbok=; b=FB5fISpLPuWaxa8vmKAlVwzPdlVP917vTpWDFXIg+1RtuNPZbbTRotoB7LIbrneR3P guc2aByqnDe333uIn5MGjcw+VyKormkBxrboRrmh4azISz91Qez0dJH8j6Wjzvcbcosh TLm7OuiqiA0ATwK0BpgO0WGpxosLcnWG9v2NP9woyIZhRls56Zz4+M0tpSMHSpk3YYb7 pLPsKrvg8DtctUL/eMt0sw51Zs2iexIetKRldCv4Im+o+dmtCC3Cm3bn6Y9ouxeSn954 sFjm/cXn/quOfPUk2ovol5OzathUpuOkfMgWgehghr5P2Kr2MK1IKEY1k1yiajTKu6NE AZ7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722524433; x=1723129233; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OGdxDj8erNo60FDqnEz2+G+lkRTNGK1Hx7OFC+Sdbok=; b=sNFpLKenmWqO+96MjkTpGQyN4zyJ3IeqL8B4XGipP5DD5FX0RtrRJmLek9D4a6S/5D oziLC5qMM2v1C5WxqU2pNzSEKWCQageA7jk+RKjFw2Fp6sSd8edjNBVtJWZzPcd2evuI htlgi/9zyDN4UhtNalaZvqYYrl+xXCo8i26rQoS5AFvUaQXjzSXCCL8KC+7SpkHxRhe7 WbGKPlthBvqVxc2U6u8YlRv02TUWHrac2BvqqMNBEQ7CFH+7W+4Zkwngjw0QyNI7h2U8 8S3tkDjD39tyjPTPOFh3+4w+/+8pKryV0FwY/v6hrA4ujqhjG3IN5jJaI3gSR+IybjZW d9hw== X-Gm-Message-State: AOJu0YzjTbEjsls5nLYdDUDLuE3OXNZaSbzTcKv1XibyZD5GfEU0YLRi B+ptXuLiFSSOYaZgx2whuEK/4Xa+cPnYUvzjkcQYXP0dYT/aP26g8Vae0O/DOABZIu48c3U5mwZ 2OnuJ X-Google-Smtp-Source: AGHT+IGSCgsEMg4v1/1Bx3EhE1KSgQ2dMDzDzyFmWegTNFmRBthHHVOGxaL05ueDnd71fzow6B4n0g== X-Received: by 2002:a05:6512:39c7:b0:52e:f2a6:8e1a with SMTP id 2adb3069b0e04-530bb3b6f59mr98768e87.29.1722524432372; Thu, 01 Aug 2024 08:00:32 -0700 (PDT) Received: from platypus.lan ([2a04:cec2:9:dc84:3622:6733:ff49:ee91]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5ac63590592sm10252456a12.25.2024.08.01.08.00.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Aug 2024 08:00:32 -0700 (PDT) From: Arthur Cohen To: gcc-patches@gcc.gnu.org Cc: gcc-rust@gcc.gnu.org, Arthur Cohen Subject: [PATCH 108/125] gccrs: raw-strings: Remove dg-excess-error directive Date: Thu, 1 Aug 2024 16:57:44 +0200 Message-ID: <20240801145809.366388-110-arthur.cohen@embecosm.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240801145809.366388-2-arthur.cohen@embecosm.com> References: <20240801145809.366388-2-arthur.cohen@embecosm.com> MIME-Version: 1.0 X-Spam-Status: No, score=-14.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces~patchwork=sourceware.org@gcc.gnu.org The error is actually expected and uses the correct location. gcc/testsuite/ChangeLog: * rust/compile/raw-byte-string-loc.rs: Use dg-error instead of dg-excess-error. * rust/compile/raw-string-loc.rs: Likewise. --- gcc/testsuite/rust/compile/raw-byte-string-loc.rs | 2 +- gcc/testsuite/rust/compile/raw-string-loc.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/rust/compile/raw-byte-string-loc.rs b/gcc/testsuite/rust/compile/raw-byte-string-loc.rs index f37d3f9694d..b71b6e5aded 100644 --- a/gcc/testsuite/rust/compile/raw-byte-string-loc.rs +++ b/gcc/testsuite/rust/compile/raw-byte-string-loc.rs @@ -3,4 +3,4 @@ const X: &'static u8 = br#"12 BREAK // { dg-error "unrecognised token" "" { target *-*-* } .-1 } -// { dg-excess-errors "error 'failed to parse item' does not have location" } +// { dg-error "failed to parse item" "" { target *-*-* } .-2 } diff --git a/gcc/testsuite/rust/compile/raw-string-loc.rs b/gcc/testsuite/rust/compile/raw-string-loc.rs index 70977510ba3..26331eafa44 100644 --- a/gcc/testsuite/rust/compile/raw-string-loc.rs +++ b/gcc/testsuite/rust/compile/raw-string-loc.rs @@ -3,4 +3,4 @@ const X: &'static str = r#"12 BREAK // { dg-error "unrecognised token" "" { target *-*-* } .-1 } -// { dg-excess-errors "error 'failed to parse item' does not have location" } +// { dg-error "failed to parse item" "" { target *-*-* } .-2 }