)]}'
{
  "commit": "ff044a48e9811be10d28f3faaaf873e36688bcf0",
  "tree": "70bdbe21ebda928b2d0ab5b02c32113da404f63c",
  "parents": [
    "31db8e1d5850a276079e9cff9713cabea844b206",
    "03ff051d1f495ded2022eb91f45eda80568b88d8"
  ],
  "author": {
    "name": "Jacob Pratt",
    "email": "jacob@jhpratt.dev",
    "time": "Tue Aug 18 22:10:47 2026 -0400"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Tue Aug 18 22:10:47 2026 -0400"
  },
  "message": "Rollup merge of #160489 - asder8215:fs_diagnostic_items, r\u003dmejrs\n\nAdding diagnostic item markers for multiple fs functions and structs\n\nA couple months ago there were a good number of TOCTOU/other filesystem lint issues created by @estebank in the clippy repo such as:\n\n* [`Path::metdata` after `Path::exists`](https://github.com/rust-lang/rust-clippy/issues/17158)\n* [opening multiple files under a directory without using `open_at`](https://github.com/rust-lang/rust-clippy/issues/17156)\n* [File deletion followed by file creation](https://github.com/rust-lang/rust-clippy/issues/17153)\n* [File path comparison without canonicalizing](https://github.com/rust-lang/rust-clippy/issues/17155)\n* [File creation followed by setting permissions](https://github.com/rust-lang/rust-clippy/issues/17154)\n\n(There are more TOCTOU/filesystem bug lints that could be made aside from the list above, e.g. with symlinks).\n\nI was particularly interested in working on the last issue on file creation followed by setting permissions. However, I don\u0027t think I could start working on it without diagnostic items on filesystem functions like `fs::set_permissions` or `fs::create_dir_all`. I decided to put diagnostic item attributes on all the filesystem functions and a couple of the structs because they may be useful in creating clippy lints against TOCTOU bugs or other relevant filesystem operation bugs.\n",
  "tree_diff": []
}
