)]}'
{
  "commit": "c42ac5fd59628ea7e2f52af5944c2aaac3f0e7f6",
  "tree": "cbb94f572f7af6ffb51c66ea11970ae91d2aec1e",
  "parents": [
    "d0f2ef5e53039bd86fdcaa6e71860c4948880e04",
    "93d03be311a7999f9326e86e7fa7561d2fe6389a"
  ],
  "author": {
    "name": "bors",
    "email": "bors@rust-lang.org",
    "time": "Fri Aug 28 08:06:41 2026 +0000"
  },
  "committer": {
    "name": "bors",
    "email": "bors@rust-lang.org",
    "time": "Fri Aug 28 08:06:41 2026 +0000"
  },
  "message": "Auto merge of #161571 - mu001999-contrib:dead-code-refactor, r\u003dchenyukang\n\nRefactor the `#[allow(dead_code)]` propagation for impl items of traits\n\n\n\nExtracted from https://github.com/rust-lang/rust/pull/157885.\r\n\r\nThis PR does the refactor and corrects the previous implementation.\r\n\r\nThe following will fail currently ([play](https://play.rust-lang.org/?version\u003dnightly\u0026mode\u003ddebug\u0026edition\u003d2024\u0026gist\u003d3279902b2d2e6b0fe75c5af565b1cddd)):\r\n```rust\r\n#![deny(dead_code)]\r\n#![deny(unfulfilled_lint_expectations)]\r\n\r\n#[allow(dead_code)]\r\npub trait Tr {\r\n    fn foo(\u0026self);\r\n}\r\n\r\nstruct Foo;\r\n\r\nimpl Tr for Foo {\r\n    fn foo(\u0026self) {\r\n        bar();\r\n    }\r\n}\r\n\r\n#[expect(dead_code)]\r\nfn bar() {}\r\n\r\nfn main() {}\r\n```\r\n\r\nAfter this PR, we could handle the `#[allow(dead_code)]` propagation correctly, and should get perf improvement.",
  "tree_diff": []
}
