)]}'
{
  "commit": "8bc32075bb2e59bc4915093c87e488ec30f2c2b3",
  "tree": "0fb51b1fa7e59d903915aee70781fce060107723",
  "parents": [
    "c26a3a7461a511b14d7ae1090a757e3616aced21"
  ],
  "author": {
    "name": "lishin",
    "email": "lishin1008@gmail.com",
    "time": "Tue Jun 09 17:04:55 2026 +0100"
  },
  "committer": {
    "name": "Arthur Cohen",
    "email": "arthur.cohen@embecosm.com",
    "time": "Thu Jun 25 19:21:39 2026 +0200"
  },
  "message": "gccrs: add drops at the end of function bodies\n\nAdd function-scope Drop support for the implicit return case.\nAdd two test cases. This does not yet support explicit return.\n\ngcc/rust/ChangeLog:\n\n\t* backend/rust-compile-base.cc (HIRCompileBase::compile_function_body):\n\tAdd drop calls at the end of function bodies.\n\ngcc/testsuite/ChangeLog:\n\n\t* rust/execute/drop-function-scope-unit.rs: New test.\n\t* rust/execute/drop-function-scope.rs: New test.\n\nSigned-off-by: lishin \u003clishin1008@gmail.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "54b531173e94b831bbec68b7adc051a42e86b8ac",
      "old_mode": 33188,
      "old_path": "gcc/rust/backend/rust-compile-base.cc",
      "new_id": "9678ad482d89548887066df6e5d550e4a28af08b",
      "new_mode": 33188,
      "new_path": "gcc/rust/backend/rust-compile-base.cc"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "e4dd91f985af27ffe92871ef03394ecf49680f58",
      "new_mode": 33188,
      "new_path": "gcc/testsuite/rust/execute/drop-function-scope-unit.rs"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "70344865dd0bb18adeec6c953fe054fb0f8e165a",
      "new_mode": 33188,
      "new_path": "gcc/testsuite/rust/execute/drop-function-scope.rs"
    }
  ]
}
