get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/1.2/patches/2223278/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2223278,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/2223278/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20260414231905.191063-18-arthur.cohen@embecosm.com/",
    "project": {
        "id": 17,
        "url": "http://patchwork.ozlabs.org/api/1.2/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": "<20260414231905.191063-18-arthur.cohen@embecosm.com>",
    "list_archive_url": null,
    "date": "2026-04-14T23:18:39",
    "name": "[COMMITTED,18/43] gccrs: expand: Added a more complete test",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "7d1d8dea7e1128757f98fec78aaafab90fadcfc1",
    "submitter": {
        "id": 83476,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/83476/?format=api",
        "name": "Arthur Cohen",
        "email": "arthur.cohen@embecosm.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/20260414231905.191063-18-arthur.cohen@embecosm.com/mbox/",
    "series": [
        {
            "id": 499900,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/499900/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=499900",
            "date": "2026-04-14T23:18:24",
            "name": "[COMMITTED,01/43] gccrs: testsuite:Add a testcase for setup_associated_types",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/499900/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2223278/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2223278/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=embecosm.com header.i=@embecosm.com header.a=rsa-sha256\n header.s=google header.b=HT3P0+yr;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org\n (client-ip=2620:52:6:3111::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=embecosm.com header.i=@embecosm.com header.a=rsa-sha256\n header.s=google header.b=HT3P0+yr",
            "sourceware.org;\n dmarc=none (p=none dis=none) header.from=embecosm.com",
            "sourceware.org; spf=pass smtp.mailfrom=embecosm.com",
            "server2.sourceware.org;\n arc=none smtp.remote-ip=209.85.128.68"
        ],
        "Received": [
            "from vm01.sourceware.org (vm01.sourceware.org\n [IPv6:2620:52:6:3111::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 4fwKxL6fXnz1yHc\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 15 Apr 2026 09:19:50 +1000 (AEST)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 27FFA4BA23E5\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 14 Apr 2026 23:19:48 +0000 (GMT)",
            "from mail-wm1-f68.google.com (mail-wm1-f68.google.com\n [209.85.128.68])\n by sourceware.org (Postfix) with ESMTPS id AF7364BA543C\n for <gcc-patches@gcc.gnu.org>; Tue, 14 Apr 2026 23:14:35 +0000 (GMT)",
            "by mail-wm1-f68.google.com with SMTP id\n 5b1f17b1804b1-4887ca8e529so40597785e9.0\n for <gcc-patches@gcc.gnu.org>; Tue, 14 Apr 2026 16:14:35 -0700 (PDT)",
            "from platypus.localdomain (176-147-231-59.abo.bbox.fr.\n [176.147.231.59]) by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-488f1dd8806sm3325945e9.3.2026.04.14.16.14.32\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 14 Apr 2026 16:14:33 -0700 (PDT)"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org 27FFA4BA23E5",
            "OpenDKIM Filter v2.11.0 sourceware.org AF7364BA543C"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org AF7364BA543C",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org AF7364BA543C",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776208475; cv=none;\n b=seHuib4h9ClNuCKY36k9/jesHjGLewa1pbIrh9HLoWlgFJpf3V2YNiKasVgfmLUKnZLVtarfeWFKsDfr4jMU6CTpnY0J6QjBk8yNY2Lj40gBIrFaqwYjGl6GsAI/2LV5lfTM/zcdfgbd2km8xA8nAQ5ZMU3jVsj9k4O6w/IOeao=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1776208475; c=relaxed/simple;\n bh=HOi9vXR213ISjOIVKj9ffsLHqJ08Q5WO3ogprB56irE=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=wz3ZK8csDwAGjQkDxu0Xgg7LypqKDowaY/+iuRwG1q/VA9Ozs8YCkAvVkOWJMJC/TCwdmvFZo9hACtZZ+MUjuLpxnX+4baOFD9iSWfKvaPZG6wty9sG4UAd2BxSvpFkl7RE1o3pr8wOJYwVb/xgPh/cTeZS7U2QrHCP19SdL8ZE=",
        "ARC-Authentication-Results": "i=1; server2.sourceware.org",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=embecosm.com; s=google; t=1776208474; x=1776813274; darn=gcc.gnu.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=6ZzgENNwzcE4lMn1HvqwAqhsEPOnsnRCeHKP8Q6bP1w=;\n b=HT3P0+yrtSYERR8BcKiosOV4wbuPmp+xQE0+mu6GI8VanNmfnYt2PX1Lb07TmZBdwB\n Nv2mx5u+OEhMullkRSi9bLliIk9nwLvwelLTvzhqnnBM4PPBM+udPJzUfTlP3THZhPv9\n eOCgAIg9AY//XBMhdsBGisEwqRcTrUP8H1Iuyw0uo+50bNQD75SEeOuxzeumX9rMtuFT\n 4s1h5IM3dsNeeaEoej8YScsfmEiq/T4zpSp+25J3p5oKYGO1wm7yZx+b/j9Pz79zN2pT\n OKfU/tzBzoXX8UtB/6y+XQCqt1VL8Foy0GH0WvN8Y5ws6R31X0/cz77EFnY9qA7SeDqL\n TLxQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776208474; x=1776813274;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=6ZzgENNwzcE4lMn1HvqwAqhsEPOnsnRCeHKP8Q6bP1w=;\n b=Y2ixLj9w+9sAP21OVnYjbi1SG3F8P1WPDsFStZbCPOEPGPOgq+5HR3qveEcQbINLLu\n x8bI5RDdxjKyBiQSqaskgIXviKZBy7Gem5ceU8TiBIIPC6zjmuH6FYQ5gjcZZNTO3/be\n ySiDMj6nqprNxmSaQ/j/58rllcr7d54XMgq4HLnA0GqQXXZEZEF3+KqphcKZ3DwU5ZK/\n 2sDZCGAnyZWm2Yyl6zYtj1yPG+qFOdKENKVOHju81FbCT/YRvsIynUZsK/aYwJ0CaLRz\n 9vkgufmdxuVQDBXDPUn2b8PBaOioXj2PlTzGx4Dl0LWpN1T5LGRfc//y73GnOhEQofbE\n NjgQ==",
        "X-Gm-Message-State": "AOJu0YzgqsBr0XpGSvT5KbVmB1CQtQJU1FrvAXvjqk5lHaS6W7TRCXjH\n TB2AuTAWc2q4I8tknfA/0WZ/mtignRhcHs/0W2CzYs0fyd4ow68NaUgzdzGCchtWvSiak+RSbfV\n r10WLBOtK",
        "X-Gm-Gg": "AeBDieuLJLsjwGE1p1Z0L6R6U9zK+t0WgFc2SiNoeZ8aVbSw0F91JMSUZoOePkJUG+L\n FGpkk6tSRhUW7l+iiPaZQHhOZQrYLa+IL2yrwBvV4GgBhCa7HPKzX0RA5R6rzNPotAox5KpO5gs\n VnJrZyeK80YJiLh3hTai0KakIWxLGrMI5R0hu8wtVkpw3YK8oMfdmg/YS9FPceAkkr9OaEO8syz\n WAI+LwQEf4XA5vTUfCsljHn1jWNDuiRNfv1tFrt5WupqnU33IFnZFSjijnVT9nbilistC/5ZIWz\n PGOK36roR2B+ioIqKUd7HFxTHJ5d+aHHVUdle1kOXHGiz2fIlc7+wWU98IxAwKBXRS85xTUP9cI\n 7qE5Gid3qf52yp2xTrxd2K2dn0r9i3CTGfpx5zogu5U3J5jSdtXnYkySgTXscE9ocpGkM87HCXU\n /dGzuc1SIWuJMgFZg0PB1K0dLdGWrMRAUzfi+psdXoFsdXyxLX89hPZiwOI+2kgOc39ghcpsdNT\n bjwEg==",
        "X-Received": "by 2002:a05:600c:a406:b0:488:aa33:dc8f with SMTP id\n 5b1f17b1804b1-488d6781cf5mr206295525e9.0.1776208474376;\n Tue, 14 Apr 2026 16:14:34 -0700 (PDT)",
        "From": "arthur.cohen@embecosm.com",
        "To": "gcc-patches@gcc.gnu.org",
        "Cc": "gcc-rust@gcc.gnu.org,\n\tJayant Chauhan <0001jayant@gmail.com>",
        "Subject": "[COMMITTED 18/43] gccrs: expand: Added a more complete test",
        "Date": "Wed, 15 Apr 2026 01:18:39 +0200",
        "Message-ID": "<20260414231905.191063-18-arthur.cohen@embecosm.com>",
        "X-Mailer": "git-send-email 2.50.1",
        "In-Reply-To": "<20260414231905.191063-1-arthur.cohen@embecosm.com>",
        "References": "<20260414231905.191063-1-arthur.cohen@embecosm.com>",
        "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---\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",
    "diff": "diff --git a/gcc/testsuite/rust/compile/issue-3875.rs b/gcc/testsuite/rust/compile/issue-3875.rs\nnew file mode 100644\nindex 00000000000..025cd93d1aa\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": [
        "COMMITTED",
        "18/43"
    ]
}