get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2223289,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2223289/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20260414231905.191063-29-arthur.cohen@embecosm.com/",
    "project": {
        "id": 17,
        "url": "http://patchwork.ozlabs.org/api/1.1/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
    },
    "msgid": "<20260414231905.191063-29-arthur.cohen@embecosm.com>",
    "date": "2026-04-14T23:18:50",
    "name": "[COMMITTED,29/43] gccrs: Add additional builtin attribute values",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "1513710aaff1bfc414f5c64681ba3262c04323ed",
    "submitter": {
        "id": 83476,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/83476/?format=api",
        "name": "Arthur Cohen",
        "email": "arthur.cohen@embecosm.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/20260414231905.191063-29-arthur.cohen@embecosm.com/mbox/",
    "series": [
        {
            "id": 499900,
            "url": "http://patchwork.ozlabs.org/api/1.1/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/2223289/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2223289/checks/",
    "tags": {},
    "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=QIOLL4kA;\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=embecosm.com header.i=@embecosm.com header.a=rsa-sha256\n header.s=google header.b=QIOLL4kA",
            "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.46"
        ],
        "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 4fwL3C1J2Qz1yHM\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 15 Apr 2026 09:24:54 +1000 (AEST)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 72F994BA2E07\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 14 Apr 2026 23:24:52 +0000 (GMT)",
            "from mail-wm1-f46.google.com (mail-wm1-f46.google.com\n [209.85.128.46])\n by sourceware.org (Postfix) with ESMTPS id E21054BA2E07\n for <gcc-patches@gcc.gnu.org>; Tue, 14 Apr 2026 23:14:54 +0000 (GMT)",
            "by mail-wm1-f46.google.com with SMTP id\n 5b1f17b1804b1-488b0e1b870so95911425e9.2\n for <gcc-patches@gcc.gnu.org>; Tue, 14 Apr 2026 16:14:54 -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.51\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 14 Apr 2026 16:14:51 -0700 (PDT)"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org 72F994BA2E07",
            "OpenDKIM Filter v2.11.0 sourceware.org E21054BA2E07"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org E21054BA2E07",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org E21054BA2E07",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776208495; cv=none;\n b=N6onyaYvaoXrD1mgivxSwjrnJrwFPRf87m2q3iLwpAf1/rm3fybmE/ftvrfbmlyKBhiJLKe0P7Mp0qNx2qxvATIg9nCLTApKTYmBs+MTHcsu1rXp/eHvTAKbAwAcfiWfoI6hZToNosoHrNMxPwvszNXgK003ONzz7Au0iIJOxbc=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1776208495; c=relaxed/simple;\n bh=Xb5QsfWzDbFHBrW+7yqiBySIsWOZJcsR7srlXiGtftI=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=htWaKFfWLv2lbDFqwtOwr2FWXtsB3dHzSCtBJoLeUakts+11LhZZE5DgDMGILTzoA1PaaqGD94L2rWq3c6al0uh7x+Hsaftb9KaZCSlVf5EgCzox6BkdZore/0ssjJqqmUc7T9Z/qySyGZcXE/JwAbgMVTMXuJ9FZNZYTmyREgk=",
        "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=1776208493; x=1776813293; 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=e32QTkWayAlLXUqV0yd8qjypv1Sdgmp1Og5J9KSA+Oc=;\n b=QIOLL4kA8RtzTeHzgsSR36EuAUnO79fnVL9NfkrTuG/pIB0+R+xBlqZ2CMqZCftteC\n yS/q8TM3AeCG/H3Jgf+1LZQO4jNIf9p2xFrb43KmZ7sQxMF4RydHLS+Y8G6iR96G5/4O\n GlapVbV2yRAua8gw58oII0t7icQLVqiWRP+fswxWNWhEZQ8+p6PXQwADkovebajtXkiD\n D6qPF/WPwVt8qEEeGamz3WvmGKWQHGBLqMTtDGuRNxbmjfmdLOS39IhXtNfSBQpigFgQ\n CCj8LHNgxqicVwBiLlcGPQxvk7Eya9Mm4b0IVXhAMlFf/Q/PfAVTCsJSXluhP0Lpdq18\n 2uHQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776208493; x=1776813293;\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=e32QTkWayAlLXUqV0yd8qjypv1Sdgmp1Og5J9KSA+Oc=;\n b=ss5Dpz2lEa+OHmMV2dkIDbjwS3V6aU0vAFgHKg0eiqZG+vqWodFOShmQyvw3C44F/2\n XwHjAtKDCM4DwVcLSGKq1Jmgutbecjo8mPSvBVjaKp136KkzkE80KNAk+HpVLeIPdSW6\n SwDdHvrL+GQ3q2ZhMwS0fkpZ5ivuhQ8BV0qaKidwKm6TYNJLEzdzqrQib+fA53zkAvA8\n vS05ZJNey/hHn5iFcrbkdjnxfFY/+eNMylFddNY1eiHHqC5Qtot2C6Uc5CzjUGG8ViQP\n nsu+JZ+OKMdTTajlgHYaUsl8QifMFECObcrpSeLWIf3IHMKYicbgdQqz3tKzcUJTrabV\n ackg==",
        "X-Gm-Message-State": "AOJu0YwrktRQV8CrwSG9+H8i09jrcXVFttHltiKs5YJezZevcsImGmrF\n 8T0Q2Pj6qGjJ+pBsF3Vn/7JKfYHaWRyBE51XaAfwJ42vuf5jOZNqFGbH1gA4w+JYIfN4KuWCO9K\n a1QiTOQ==",
        "X-Gm-Gg": "AeBDiesGbu0FprMJpPNRN2KctKP9ERMARo3VftE0K2OQZHxYR4XSlRNEeAgD/mo4onI\n GHpW3JGJBfl4Y9TXEkEEozdu+qiE7R7MSSI5tpFzFkdJ0Dv526ijT7EecWr/TY1DJB1eqeIJ+Qp\n hV6fhrZ+29omfT72yPUE/oAK8WdHI3dZqGM12cNRO7KFVoULX8K0WoLyTLOFJOmrdeHz8a7TgjL\n A5zfl2JaNULtDSI5NbHtZ5ZCZ9n2tgimAHpVXOa5TNcbnkGk4cRLwmtHw1Gj46dICUtTZQc3I1e\n 4wp1hALIqmK0fYw2XaQF0PWM+NCoGB7jwaPl8f90HTGsz0MDCtbsYfqhebltR/DEexSBtahcofG\n PkePd+Cmk4j+dYe3LpxyGKmcBnuR7S5iJdyeeq1D6HoLJKXPAUpCeylhvOP9yG8Ac5FVEUXOzCm\n 8xB7gnRZt5y/QB4oFn0k9JvZ6mEJ0X3Iqh/ph1YuUtD2A6GximHhbISv4qCVb+CtZPfXlahYJFT\n 3coMDjlboOtTz13",
        "X-Received": "by 2002:a05:600c:8907:b0:488:80b6:873a with SMTP id\n 5b1f17b1804b1-488d6860bc3mr180368695e9.21.1776208493190;\n Tue, 14 Apr 2026 16:14:53 -0700 (PDT)",
        "From": "arthur.cohen@embecosm.com",
        "To": "gcc-patches@gcc.gnu.org",
        "Cc": "gcc-rust@gcc.gnu.org,\n Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>",
        "Subject": "[COMMITTED 29/43] gccrs: Add additional builtin attribute values",
        "Date": "Wed, 15 Apr 2026 01:18:50 +0200",
        "Message-ID": "<20260414231905.191063-29-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: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>\n\nAdd deny, warn and forbid attribute values.\n\ngcc/rust/ChangeLog:\n\n\t* checks/errors/rust-builtin-attribute-checker.cc (std::function<void):\n\tUse the new attribute value variables instead of raw values.\n\t* util/rust-attribute-values.h: Add deny, warn and forbid values.\n\nSigned-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>\n---\n gcc/rust/checks/errors/rust-builtin-attribute-checker.cc | 6 +++---\n gcc/rust/util/rust-attribute-values.h                    | 3 +++\n 2 files changed, 6 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/gcc/rust/checks/errors/rust-builtin-attribute-checker.cc b/gcc/rust/checks/errors/rust-builtin-attribute-checker.cc\nindex f6a2e2c836d..9078a10164a 100644\n--- a/gcc/rust/checks/errors/rust-builtin-attribute-checker.cc\n+++ b/gcc/rust/checks/errors/rust-builtin-attribute-checker.cc\n@@ -369,9 +369,9 @@ const std::unordered_map<std::string, std::function<void (AST::Attribute &)>>\n      {Attrs::EXPORT_NAME, handlers::export_name},\n      {Attrs::NO_MANGLE, handlers::no_mangle},\n      {Attrs::ALLOW, handlers::lint},\n-     {\"deny\", handlers::lint},\n-     {\"warn\", handlers::lint},\n-     {\"forbid\", handlers::lint},\n+     {Attrs::DENY, handlers::lint},\n+     {Attrs::WARN, handlers::lint},\n+     {Attrs::FORBID, handlers::lint},\n      {Attrs::LINK_NAME, handlers::link_name},\n      {Attrs::PROC_MACRO_DERIVE, handlers::proc_macro_derive},\n      {Attrs::PROC_MACRO, handlers::proc_macro},\ndiff --git a/gcc/rust/util/rust-attribute-values.h b/gcc/rust/util/rust-attribute-values.h\nindex a9e07bf015e..332d65e80dd 100644\n--- a/gcc/rust/util/rust-attribute-values.h\n+++ b/gcc/rust/util/rust-attribute-values.h\n@@ -32,6 +32,9 @@ public:\n   static constexpr auto &DERIVE_ATTR = \"derive\";\n   static constexpr auto &DEPRECATED = \"deprecated\";\n   static constexpr auto &ALLOW = \"allow\";\n+  static constexpr auto &DENY = \"deny\";\n+  static constexpr auto &WARN = \"warn\";\n+  static constexpr auto &FORBID = \"forbid\";\n   static constexpr auto &ALLOW_INTERNAL_UNSTABLE = \"allow_internal_unstable\";\n   static constexpr auto &DOC = \"doc\";\n   static constexpr auto &MUST_USE = \"must_use\";\n",
    "prefixes": [
        "COMMITTED",
        "29/43"
    ]
}