)]}'
{
  "commit": "499fca9a7def7c05d4e2a73e00e6d64a2bc9cb26",
  "tree": "db827b1596ae41cebceb458bcc7d2287b886a148",
  "parents": [
    "867a480232dcf6429e4ca78cc6b7a6c4ead0f560",
    "febd3b9fe117fc6781a7b243f2459b5e053165f4"
  ],
  "author": {
    "name": "Stuart Cook",
    "email": "Zalathar@users.noreply.github.com",
    "time": "Mon Feb 23 13:32:01 2026 +1100"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Mon Feb 23 13:32:01 2026 +1100"
  },
  "message": "Rollup merge of #152984 - stellanomia:remove-redundant-inline-check, r\u003dJonathanBrouwer\n\nRemove redundant call to `check_codegen_attributes_extra` in Inliner\n\nInside `try_inlining`, `check_codegen_attributes` is called first. This function internally invokes `check_codegen_attributes_extra`.\nHowever, immediately after that returns, `try_inlining` calls `check_codegen_attributes_extra` again.\n\nFirst call:\nhttps://github.com/rust-lang/rust/blob/7ec34defe9e62a1a6946d3e700b5903d8dc89ece/compiler/rustc_mir_transform/src/inline.rs#L800-L814\n\nSecond call:\nhttps://github.com/rust-lang/rust/blob/7ec34defe9e62a1a6946d3e700b5903d8dc89ece/compiler/rustc_mir_transform/src/inline.rs#L598-L612\n\n```rust\n    // Inside try_inlining:\n    check_codegen_attributes(inliner, callsite, callee_attrs)?; // Internally calls `check_codegen_attributes_extra`\n    inliner.check_codegen_attributes_extra(callee_attrs)?;      // Called again here\n```\n\nIn `try_inlining`, inliner is held as a shared reference (`\u0026I`). Since `check_codegen_attributes_extra` takes `\u0026self` and does not rely on interior mutability or external state, there does not seem to be any state change between the two calls.\n\nTherefore, the second call appears to be redundant.\n\nCurrently, `check_codegen_attributes` is only called from `try_inlining`, and `check_codegen_attributes_extra` appears to be called only from these two locations. It seems reasonable for the `check_codegen_attributes` wrapper to handle the hook automatically.\n",
  "tree_diff": []
}
