Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2217823/?format=api
{ "id": 2217823, "url": "http://patchwork.ozlabs.org/api/patches/2217823/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20260330164912.3078-1-gerris.rs@gmail.com/", "project": { "id": 17, "url": "http://patchwork.ozlabs.org/api/projects/17/?format=api", "name": "GNU Compiler Collection", "link_name": "gcc", "list_id": "gcc-patches.gcc.gnu.org", "list_email": "gcc-patches@gcc.gnu.org", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260330164912.3078-1-gerris.rs@gmail.com>", "list_archive_url": null, "date": "2026-03-30T16:49:12", "name": "[gccrs,COMMIT] expand: Added a more complete test .", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "7d1d8dea7e1128757f98fec78aaafab90fadcfc1", "submitter": { "id": 92092, "url": "http://patchwork.ozlabs.org/api/people/92092/?format=api", "name": null, "email": "gerris.rs@gmail.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/20260330164912.3078-1-gerris.rs@gmail.com/mbox/", "series": [ { "id": 498068, "url": "http://patchwork.ozlabs.org/api/series/498068/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=498068", "date": "2026-03-30T16:49:12", "name": "[gccrs,COMMIT] expand: Added a more complete test .", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/498068/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2217823/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2217823/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "gcc-patches@gcc.gnu.org" ], "Delivered-To": [ "patchwork-incoming@legolas.ozlabs.org", "gcc-patches@gcc.gnu.org" ], "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=opVgiW3k;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org\n (client-ip=38.145.34.32; helo=vm01.sourceware.org;\n envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org;\n receiver=patchwork.ozlabs.org)", "sourceware.org;\n\tdkim=pass (2048-bit key,\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=opVgiW3k", "sourceware.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com", "sourceware.org; spf=pass smtp.mailfrom=gmail.com", "server2.sourceware.org;\n arc=none smtp.remote-ip=209.85.219.47" ], "Received": [ "from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fky0v23QVz1xtJ\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 31 Mar 2026 03:50:23 +1100 (AEDT)", "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 31F164B92088\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 30 Mar 2026 16:50:21 +0000 (GMT)", "from mail-qv1-f47.google.com (mail-qv1-f47.google.com\n [209.85.219.47])\n by sourceware.org (Postfix) with ESMTPS id 201244BB5907\n for <gcc-patches@gcc.gnu.org>; Mon, 30 Mar 2026 16:49:15 +0000 (GMT)", "by mail-qv1-f47.google.com with SMTP id\n 6a1803df08f44-8a15ebb3abbso12240636d6.1\n for <gcc-patches@gcc.gnu.org>; Mon, 30 Mar 2026 09:49:15 -0700 (PDT)", "from\n runnervmrg6be.1twmjawpi4yejnswvcxnlxfa3a.cx.internal.cloudapp.net\n ([68.154.54.101]) by smtp.gmail.com with ESMTPSA id\n 6a1803df08f44-89ecfd525b5sm70300656d6.42.2026.03.30.09.49.13\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Mon, 30 Mar 2026 09:49:13 -0700 (PDT)" ], "DKIM-Filter": [ "OpenDKIM Filter v2.11.0 sourceware.org 31F164B92088", "OpenDKIM Filter v2.11.0 sourceware.org 201244BB5907" ], "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 201244BB5907", "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 201244BB5907", "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1774889355; cv=none;\n b=Qflh8qBJGcM59MMqb519FvtF+g8QnNtzxm9ALXWON8i8kQWCmKNYTG3ntF8nUxkEX4Fn03ZMzwD9URWsNgOqDTg7ZBKkly358pr99KGK9fKDI5ZG5EIIyDoubTzKwup5Gey0E7Ve0ZweDYHye/s2Fr/gWLEWWtO1Lm5KmD8efSU=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1774889355; c=relaxed/simple;\n bh=FWZoQ+i6IrM94oIr/Z0S7uB2uuoLBWRCIzcE4TYYNAc=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=oKTwfegRK9rhcT+PHNCEaRKTq2PeqPVThX8u/hI+oZWTj02TFrzKjZ7ma/ZG3dZRnj45P12IhusikxMCSWy+ut/XtXsh2mno4j5UJQrxM5K8+3GBxPYBSRowPf5sGkuGO9mZZh4aRrsSrm16z1C3daS4+c0j4E0yxgx5n4CSTPI=", "ARC-Authentication-Results": "i=1; server2.sourceware.org", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1774889354; x=1775494154; darn=gcc.gnu.org;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:from:to:cc:subject:date:message-id:reply-to;\n bh=Ym2/Oh1jK2fAVtFIpCHtloxJ/tiw27Y+W3b4yn/OdGU=;\n b=opVgiW3k3axpyyQcaVU48t/JRiofFdSBqGapbL7oXqedrbJmccLkbkjmZmqf9qbXWu\n bIcJPJefKg1EK9MooEPIv66mzh5DtJr0KzCaFY8QHRC9PLUxWB2iO35rB/9MfiriXcLI\n iszm7tsYbcyOM3KCXOSu1RKlfze7JA+YuTTrSJ5ZLZE85bpSCLxbl8wmr8+e/pk04QU+\n 7KCS0iXYNouI5dMlXHSD9s/hEJ2ZtrmKKRo/6GebFrHCojVIcaL2LQsYDgBQLPElRs5l\n YpTpBH3xR7TGK4O8NPlJv7iHrIi6yX7cIx5+ZRWKHjF/ww3rJyGqT9XlYWqEC5v5sRFA\n 0A4A==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1774889354; x=1775494154;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=Ym2/Oh1jK2fAVtFIpCHtloxJ/tiw27Y+W3b4yn/OdGU=;\n b=XdjFbE6wYAk5ptixbu1mzrr+tvOHmc+x/BUpT8Icjlx2EyVIhuobs4XK21TXYSHXHF\n 3rEBVYP2pnNwK+DARh2hWDCExTC6pJQpqUGIc5oWpzMXgGYj7orWKmJ28s1q90u8agio\n 2hpKHTVwcY72c7w6heTE7PTbHucKv75d4GKuUu+tmoB7WYXi9cVjzuF07bv2u/83URaA\n Xc+ONtlqU9iD7FX8JKmLqJr/zZmz+TOdQGbOv+Mm1xO2gueZPjR0TgKaIIXL4EesNiMc\n UgsBfK7geDpUgIk0e4Q/5EVpE6au633UPEmwmsCZRSsa3GXTSySl5SRzxRhZMixvGacL\n 9+sg==", "X-Gm-Message-State": "AOJu0YzpX2g5OJODJMI8OchghiSQs1kxaYTW8TxGNgZAMXd8wgI1T74V\n q2FMDzShT2tqaONjAnth2kZC0l6h8HrisXOd40OYkw7cLs7HnjrGqP2wmYfd4w==", "X-Gm-Gg": "ATEYQzx3k6d6UP7TgKxz6HQbez3bC25ZOPl8OCnsu7/gmNzx5+QYsZ59jU/vfQxmvwN\n 67C4AsWjEhvomr+/KZwrjN+vNGJGv2ICZlVqRDkI5ssyiccUHb38lhzX7wYk4KBzdd/Gjf/pJER\n ku0kB00v2+eRXlct5WSqHPaWR9XE2G4JBOXHV0Yg7Mgifb4o1k49vDtKQ0N5NmS8aUqaRKAJf/H\n rIMMmsvfadps4d2HQJ2QUxlZkEm/O3iueVlaSdn0Eyf9K5uxdR22wG29EWoHeslZq5XYHmXhE7c\n Q2guVI3c3KVX/1DSi0+GXmx/jY3ePp+JB1ZTXIMIHBioeRR1ClE2u1jztJ5kuZzSqC4ObyU0Zf0\n 7XJbHF4BKCH7O1ncCZTjeexF/Rn0UUrfO3DYlKqBm7zCgaCkYMgHIbYyYoYDmZPaioaBnzAsTws\n aLzQqgtlFHxAXNqJ7JBFLbLe+o0B+08qQLCqncHNAWcMV3yiBsLTL6QFbqHj2hWROvIrOLa3ykc\n mo5jNjwtwIGl4pEEQsc3A==", "X-Received": "by 2002:a05:6214:434a:b0:89c:c1d6:d742 with SMTP id\n 6a1803df08f44-89ce8d3b330mr189797026d6.19.1774889354370;\n Mon, 30 Mar 2026 09:49:14 -0700 (PDT)", "From": "gerris.rs@gmail.com", "To": "gcc-patches@gcc.gnu.org,\n\tgcc-rust@gcc.gnu.org", "Cc": "pierre-emmanuel.patry@embecosm.com, arthur.cohen@embecosm.com,\n dkm+gccrs@kataplop.net, Jayant Chauhan <0001jayant@gmail.com>", "Subject": "[gccrs COMMIT] expand: Added a more complete test .", "Date": "Mon, 30 Mar 2026 16:49:12 +0000", "Message-ID": "<20260330164912.3078-1-gerris.rs@gmail.com>", "X-Mailer": "git-send-email 2.43.0", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "gcc-patches@gcc.gnu.org", "X-Mailman-Version": "2.1.30", "Precedence": "list", "List-Id": "Gcc-patches mailing list <gcc-patches.gcc.gnu.org>", "List-Unsubscribe": "<https://gcc.gnu.org/mailman/options/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe>", "List-Archive": "<https://gcc.gnu.org/pipermail/gcc-patches/>", "List-Post": "<mailto:gcc-patches@gcc.gnu.org>", "List-Help": "<mailto:gcc-patches-request@gcc.gnu.org?subject=help>", "List-Subscribe": "<https://gcc.gnu.org/mailman/listinfo/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe>", "Errors-To": "gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org" }, "content": "From: Jayant Chauhan <0001jayant@gmail.com>\n\nThis patch adds a regression test ensuring that deriving on invalid items\n(such as functions or traits) triggers a diagnostic error instead of an\nInternal Compiler Error (ICE). It also verifies that Tuple Structs are\naccepted as valid targets for derivation.\n\nFixes Rust-GCC#3875\n\ngcc/testsuite/ChangeLog:\n\n\t* rust/compile/issue-3875.rs: New test.\n\nSigned-off-by: Jayant Chauhan <0001jayant@gmail.com>\n---\nThis change was merged into the gccrs repository and is posted here for\nupstream visibility and potential drive-by review, as requested by GCC\nrelease managers.\nEach commit email contains a link to its details on github from where you can\nfind the Pull-Request and associated discussions.\n\n\nCommit on github: https://github.com/Rust-GCC/gccrs/commit/bde2985a486cf5f5c000fc186f508471cdf20d12\n\nThe commit has been mentioned in the following pull-request(s):\n - https://github.com/Rust-GCC/gccrs/pull/4359\n\n gcc/testsuite/rust/compile/issue-3875.rs | 28 ++++++++++++++++++++++++\n 1 file changed, 28 insertions(+)\n create mode 100644 gcc/testsuite/rust/compile/issue-3875.rs\n\n\nbase-commit: cfc5ac9dd82f06d8b9cfacd151dd3738e9e995b4", "diff": "diff --git a/gcc/testsuite/rust/compile/issue-3875.rs b/gcc/testsuite/rust/compile/issue-3875.rs\nnew file mode 100644\nindex 000000000..025cd93d1\n--- /dev/null\n+++ b/gcc/testsuite/rust/compile/issue-3875.rs\n@@ -0,0 +1,28 @@\n+#![crate_type = \"lib\"]\n+#![feature(no_core)]\n+#![feature(lang_items)]\n+#![no_core]\n+// { dg-options \"-w\" }\n+\n+#[lang = \"sized\"]\n+pub trait Sized {}\n+\n+#[lang = \"clone\"]\n+pub trait Clone: Sized {\n+ fn clone(&self) -> Self;\n+}\n+\n+#[lang = \"copy\"]\n+pub trait Copy: Clone {}\n+\n+#[derive(Clone)] // { dg-error \"derive may only be applied to structs, enums and unions\" }\n+fn foo() {}\n+\n+#[derive(Clone)] // { dg-error \"derive may only be applied to structs, enums and unions\" }\n+trait Bar {}\n+\n+// Valid test: Derive Copy and Clone on a unit struct\n+#[derive(Copy, Clone)]\n+struct TupleStruct;\n+\n+// { dg-prune-output \"could not resolve\" }\n\\ No newline at end of file\n", "prefixes": [ "gccrs", "COMMIT" ] }