)]}'
{
  "commit": "5cccc7ca024ae93da004e194028a05ca48b0acbd",
  "tree": "8a0c31d3487e2c0158a7c11e603dbe5132cca1ee",
  "parents": [
    "f03c1a2bd3fbe3ee666adec2d11a837369083c0f",
    "7635702d06f39e9a316c00d0f7a37caf943255b3"
  ],
  "author": {
    "name": "Jonathan Brouwer",
    "email": "jonathantbrouwer@gmail.com",
    "time": "Thu Jan 22 13:35:42 2026 +0100"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Thu Jan 22 13:35:42 2026 +0100"
  },
  "message": "Rollup merge of #151441 - Keith-Cancel:mgca3, r\u003dBoxyUwU\n\nFix ICE: Don\u0027t try to evaluate type_consts when eagerly collecting items\n\nThis fixes https://github.com/rust-lang/rust/issues/151246\n\nThe change is pretty straightforward if the Monomorphization strategy is eager which `-Clink-dead-code\u003dtrue` sets. This then would lead to the existing code to try and evaluate a `type const` which does not have a body to evaluate leading to an ICE. The change is pretty straight forward just skip over type consts.\n\nThis also seems like a sensible choice to me since a MonoItem can only be a Fn, Static, or Asm. A type const is none of the aforementioned.\n\nAnd even if it was added to the MonoItems list it would then later fail this check:\nhttps://github.com/rust-lang/rust/blob/fe98ddcfcfb6f185dbf4adeaf439d8a756da0273/compiler/rustc_monomorphize/src/collector.rs#L438-L440\nSince that explicitly checks that the MonoItem\u0027s `DefKind` is static and not anything else.\n\nOne more change is the addition of a simple test of the example code from https://github.com/rust-lang/rust/issues/151246 that checks that code compiles successfully with `-Clink-dead-code\u003dtrue`.\n\nThe only other change was to make the guard checks a little easier to read by making the logic more linear instead of one big if statement.\n\nr? @BoxyUwU\n@rustbot label +F-associated_const_equality +F-min_generic_const_args\n",
  "tree_diff": []
}
