get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2218021,
    "url": "http://patchwork.ozlabs.org/api/patches/2218021/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20260331094037.3408-6-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": "<20260331094037.3408-6-gerris.rs@gmail.com>",
    "list_archive_url": null,
    "date": "2026-03-31T09:40:32",
    "name": "[gccrs,COMMIT,06/10] Add macro_export to concat macro",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "23d99e2e98acab18802811942c895f8859f238d9",
    "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/20260331094037.3408-6-gerris.rs@gmail.com/mbox/",
    "series": [
        {
            "id": 498158,
            "url": "http://patchwork.ozlabs.org/api/series/498158/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=498158",
            "date": "2026-03-31T09:40:27",
            "name": "[gccrs,COMMIT,01/10] Remove AttrInputMacro attribute input kind",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/498158/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2218021/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2218021/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=ru+ai4HF;\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=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=ru+ai4HF",
            "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=74.125.82.177"
        ],
        "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 4flNYN0b4zz1y1q\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 31 Mar 2026 20:46:32 +1100 (AEDT)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 3D99B4BB58EC\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 31 Mar 2026 09:46:30 +0000 (GMT)",
            "from mail-dy1-f177.google.com (mail-dy1-f177.google.com\n [74.125.82.177])\n by sourceware.org (Postfix) with ESMTPS id 092804B7A1E0\n for <gcc-patches@gcc.gnu.org>; Tue, 31 Mar 2026 09:40:49 +0000 (GMT)",
            "by mail-dy1-f177.google.com with SMTP id\n 5a478bee46e88-2ba9c484e5eso4796235eec.1\n for <gcc-patches@gcc.gnu.org>; Tue, 31 Mar 2026 02:40:48 -0700 (PDT)",
            "from\n runnervmrg6be.i0fnop2thlderixbsj2qpy22md.yx.internal.cloudapp.net\n ([57.151.128.242]) by smtp.gmail.com with ESMTPSA id\n 5a478bee46e88-2c3c796d895sm9175510eec.28.2026.03.31.02.40.47\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 31 Mar 2026 02:40:47 -0700 (PDT)"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org 3D99B4BB58EC",
            "OpenDKIM Filter v2.11.0 sourceware.org 092804B7A1E0"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 092804B7A1E0",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 092804B7A1E0",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1774950049; cv=none;\n b=YSiVRsJI8TPNM7zaio4yOD+en1VEk9gUB1RZGC4tSnWtbj7w+GxQsD2qAQMi1FyVJz2ykTIeDuQBoKTAhP0Eac/r9NnU+rtKZbxRa/sblnDUdMqj4b1HZ8b1TGvf4eCkAEgauM2MLxokerBZ4mjwCZ2YkigLX5Yjar9zIbJJZm0=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1774950049; c=relaxed/simple;\n bh=XiAnjF9mNn2tpGpzhXHBMpehPD9g2C1zVe33gnmwAq0=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=CMeRb1Oz3zAYRKnlhnqR7sBLg95qzpSon9aqeTPd1AIhHABN+A//G300KRYmxCn+krECIoavwVi6weo7/qzwr9OhcvfivPRs5G/MJNwKvPm96hbrTw9ZFwdFJWjK1/IsmGcn5D4ZIXf7uDWdetOVG9uBG0ost0oABi+nboy5MBw=",
        "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=1774950048; x=1775554848; 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=hryl4LEeyo3LCnyxN+uXcl7ZZ4QcgYE6MpFunj5xWQ0=;\n b=ru+ai4HFzoDUzxApYogr1CUU88hWrmPhZ2EHqwyj0Iy3XaqlgyUST/4T07KhFQzXEi\n vzTLoangLhbQ/6bAU7qbhmr7uvlgZnK0TwdFjH6SHYG4Uo1KQnhh44ZI7efIG/qqU/0Y\n pBHgh2tbFLo8s3gKQEZQjmpR8wSjYK/yGztOU2QZGzKN0QddD8M2aoehXR8KYJ+hIwfR\n ctuRQhhY7riASEzQO7hhN4hG1gmWv3c1zAO4KOyr4P87o5KInfyYDLT6fdW/TTIr3FAR\n YjoclcWNmhRbVcd5OekVs+c1X3F0kj+SHGYu0OhABf/qCEhVVno1HQvUTtAwDRwyYyUX\n b4Yw==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1774950048; x=1775554848;\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=hryl4LEeyo3LCnyxN+uXcl7ZZ4QcgYE6MpFunj5xWQ0=;\n b=LRG76dlTRsVHaLCLkCBozbkHwcJBdqDVULTtSKmLaumIkIfInY+9lmidhoHunikqmh\n 0wNc4YKHY9kidMmwUggoIyv9gk3lYAMl7eHM3figfXeSPozA4FxTjeJlyyXx0In3lkkH\n fbg62XnnhyFSN265UofEGOc61owlQFsPoRNG2wgNOrUptosc3qoi05LgtONEooYI0EFN\n J6SynhZONcGCXTp3ju9cu6nn85ovUPqRYU2kK3uNSlv0D/MiH9kmdCsJ9XrJOvVFRUwU\n PnZrNpvbE2urVYPiiBG+tOIQVSaiLnBAL63aS+lHjxLkS0wTj4HzypVjSGxXKVvoWi87\n /gOA==",
        "X-Gm-Message-State": "AOJu0YwJlH1oWogE2pcIh151Wr0of8rgOO4SzYOU+1JrzYxdpRGBongE\n eCdbNtbdkUSCRuCpB4Q8+L0tyVeeQT66E1upJ7MkK0LtuvqDWhYfEeCkbgaahg==",
        "X-Gm-Gg": "ATEYQzxP5ucmgA8OnNYRp9J9ABM0QYRjK/SnesIOx5Uyx2Ppp1UwAtFNfNj9lEVb2VH\n RT2uqtM1MPImujAdV2tYslELKcg2d2OJRr28Fuh1gceItsT9jgNXwyaT2C2rz8zlEzmPxWTCqMk\n 2y+xTAQDky8YnQ3kdpNBWsTJZCKLl/mS9uqKwDO+MxlNu2+sKXXc0VdCIetfAFCwrLDXXHbB2Bn\n cmwmm+oEmsvu1667KH7/psxn8YU9xnJpJCVBs2PLvjT070MDeIutVWGaaoXa4G4JXSNDqp2TcAx\n cNKxt6V8UvCjQizRPr32qz0MYgHP636kOR3O6j/p+5O2YIwBlhp18mDdLXLCbkm598IJ0Iwxd4e\n dqa+cN3NslebgTKNBlS3bedaVw8ccgIke+wpNFwe3jrc5xZNZXi9tqEvBy2Rvg6BrrbmxkErNTU\n +ORcogajCuYUBdkwaMHzl1pmd1x1xZ4p7XzXLWQl/pmg3tHPsF+uuwS78VFF+4yWa0JXI39amHf\n BOx1QM3BvOldwQf8O1qx8E=",
        "X-Received": "by 2002:a05:7300:d512:b0:2c1:60c8:e0ba with SMTP id\n 5a478bee46e88-2c185d04edbmr9152495eec.15.1774950047809;\n Tue, 31 Mar 2026 02:40:47 -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",
        "Subject": "[gccrs COMMIT 06/10] Add macro_export to concat macro",
        "Date": "Tue, 31 Mar 2026 09:40:32 +0000",
        "Message-ID": "<20260331094037.3408-6-gerris.rs@gmail.com>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<20260331094037.3408-1-gerris.rs@gmail.com>",
        "References": "<20260331094037.3408-1-gerris.rs@gmail.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: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>\n\nThis macro export is required with recent rust versions but not version\n1.49. Since the test was not trying to highlight this rust 1.49 behavior\nthis commit put the least constrained version of the code.\n\ngcc/testsuite/ChangeLog:\n\n\t* rust/compile/doc_macro.rs: Add macro_export on macro.\n\nSigned-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.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/803dabb23cb9bb6dbe13917876db70e764ea9dbf\n\nThe commit has been mentioned in the following pull-request(s):\n - https://github.com/Rust-GCC/gccrs/pull/4505\n\n gcc/testsuite/rust/compile/doc_macro.rs | 4 ++++\n 1 file changed, 4 insertions(+)",
    "diff": "diff --git a/gcc/testsuite/rust/compile/doc_macro.rs b/gcc/testsuite/rust/compile/doc_macro.rs\nindex dff69baad..e2c84a7e1 100644\n--- a/gcc/testsuite/rust/compile/doc_macro.rs\n+++ b/gcc/testsuite/rust/compile/doc_macro.rs\n@@ -4,6 +4,10 @@\n #![feature(extended_key_value_attributes)]\n #![doc = concat!(\"AB\")]\n \n+// This macro export should not be required for rust 1.49 because inner\n+// attributes are resolved after the macros, however it is required in newer\n+// versions of rustc.\n+#[macro_export]\n #[rustc_builtin_macro]\n macro_rules! concat {\n     () => {{}};\n",
    "prefixes": [
        "gccrs",
        "COMMIT",
        "06/10"
    ]
}