{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreibelzwfoecpjz62vrbod44vjnhmjdu5z3q3lbg475lau5kmnpwrpa",
    "uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mhyxmihlc5h2"
  },
  "path": "/t/pre-rfc-allow-attributes-to-be-applied-to-generic-arguments/24111#post_2",
  "publishedAt": "2026-03-26T05:16:17.000Z",
  "site": "https://internals.rust-lang.org",
  "tags": [
    "[1]",
    "this HackMD page",
    "RFC 3399",
    "RFC 3532",
    "↩︎"
  ],
  "textContent": "Yes please. Generics are the last set of \"comma-terminated fragments\" remaining that I would also like to see supported with cfg-attributes[1]. I have a full list of them on this HackMD page. Generally speaking, I believe if any token fragment terminates with a(n optional) comma in Rust, it should be possible to conditionally omit it with a cfg-attribute.\n\nYou might be interested in RFC 3399 (accepted) and RFC 3532 (in FCP, hopefully about to be accepted) for prior art on my personal RFC effort to support cfg-attributes in more places.\n\n* * *\n\n  1. Aside from braced multi-use statements, but that's not terribly important IMO ↩︎\n\n\n",
  "title": "[Pre-RFC] Allow attributes to be applied to generic arguments"
}