)]}'
{
  "commit": "d2ee4ca8929912c33346600a5d6090fe0bf96913",
  "tree": "d09cb40ffb21556efd93866c239df0615d43c8d0",
  "parents": [
    "f10db292a3733b5c67c8da8c7661195ff4b05774"
  ],
  "author": {
    "name": "Alona Enraght-Moony",
    "email": "contact@alona.page",
    "time": "Fri Mar 27 00:09:58 2026 +0000"
  },
  "committer": {
    "name": "Alona Enraght-Moony",
    "email": "contact@alona.page",
    "time": "Tue Jul 07 23:39:12 2026 +0000"
  },
  "message": "rustdoc: Represent `--output-format\u003djson` coverage and ir differently\n\n`--output-format\u003djson` does a few different things:\n\n- By itself, it emits a JSON representation of a crate\u0027s API (\"IR\n  JSON\").\n- When used with `--show-coverage`, it prints the doc coverage as JSON,\n  instead of an ASCII table (\"Coverage JSON\").\n\nThese two cases need to be handled entirely differently. There\u0027s no\noverlapping code, they just are called the same way.\n\nBy making these separate variants, we don\u0027t need to check the\n`show_coverage` variable each time we check `is_json`, which makes it\nharder to write a bug that checks for IR JSON, and accidentally happens in\ncoverage JSON too.\n\nAlso, as a driveby, improves some instability error messages, and cleans\nup their tests, and adds other related tests.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "3cd34f24c6e3d084ece9eef163a835c4b4e44516",
      "old_mode": 33188,
      "old_path": "src/librustdoc/config.rs",
      "new_id": "a8c27c561500720e5866589b8150afe19f88b393",
      "new_mode": 33188,
      "new_path": "src/librustdoc/config.rs"
    },
    {
      "type": "modify",
      "old_id": "fccfa3f57e930063791f574b473583eeff66373b",
      "old_mode": 33188,
      "old_path": "src/librustdoc/core.rs",
      "new_id": "5bdedf7ae3d5485a3097401e5b2440d58ca6c94e",
      "new_mode": 33188,
      "new_path": "src/librustdoc/core.rs"
    },
    {
      "type": "modify",
      "old_id": "433e4487eb9d5ef4ed05a45e92a2c827d80bc59a",
      "old_mode": 33188,
      "old_path": "src/librustdoc/json/mod.rs",
      "new_id": "2d6865dc689b60900e8f5b8cdb4fd282ed221f06",
      "new_mode": 33188,
      "new_path": "src/librustdoc/json/mod.rs"
    },
    {
      "type": "modify",
      "old_id": "a4f8e3e12e5106e96ed64066f9beabc0298f37c2",
      "old_mode": 33188,
      "old_path": "src/librustdoc/lib.rs",
      "new_id": "17f5af024ac7f5d636a2dd5ac607da003e9c4e37",
      "new_mode": 33188,
      "new_path": "src/librustdoc/lib.rs"
    },
    {
      "type": "modify",
      "old_id": "200a5a71b453a890341849a1c2d9e155e9e4bf9d",
      "old_mode": 33188,
      "old_path": "src/librustdoc/passes/calculate_doc_coverage.rs",
      "new_id": "adf98afc46cc0d1e90b96dcb4c5476aa759bc464",
      "new_mode": 33188,
      "new_path": "src/librustdoc/passes/calculate_doc_coverage.rs"
    },
    {
      "type": "delete",
      "old_id": "e5251fdf9b5d95351e3f76ed0af56d3996c9a964",
      "old_mode": 33188,
      "old_path": "tests/run-make/unstable-flag-required/README.md",
      "new_id": "0000000000000000000000000000000000000000",
      "new_mode": 0,
      "new_path": "/dev/null"
    },
    {
      "type": "delete",
      "old_id": "fb4079beb2799f8aae1f1d74022751cbd5abb889",
      "old_mode": 33188,
      "old_path": "tests/run-make/unstable-flag-required/output-format-json.stderr",
      "new_id": "0000000000000000000000000000000000000000",
      "new_mode": 0,
      "new_path": "/dev/null"
    },
    {
      "type": "delete",
      "old_id": "c521436c203d57e3aed525dd854ddbf73729a47d",
      "old_mode": 33188,
      "old_path": "tests/run-make/unstable-flag-required/rmake.rs",
      "new_id": "0000000000000000000000000000000000000000",
      "new_mode": 0,
      "new_path": "/dev/null"
    },
    {
      "type": "delete",
      "old_id": "5df7576133a684ab8f887f442084e99062eb4886",
      "old_mode": 33188,
      "old_path": "tests/run-make/unstable-flag-required/x.rs",
      "new_id": "0000000000000000000000000000000000000000",
      "new_mode": 0,
      "new_path": "/dev/null"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "0609b515e5ca84af7baba411fe99900d5e095e3f",
      "new_mode": 33188,
      "new_path": "tests/rustdoc-ui/output-format-coveragejson-emit-depinfo.rs"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "f3ba8205ddedff4d4baa05b9689391a584242e6f",
      "new_mode": 33188,
      "new_path": "tests/rustdoc-ui/output-format-coveragejson-emit-depinfo.stdout"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "b409f619fcc4218b45d3d03b2e88572223959505",
      "new_mode": 33188,
      "new_path": "tests/rustdoc-ui/output-format-doctests-unstable.rs"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "b4e920efb2b0f581e2c398330e562866999ab8cc",
      "new_mode": 33188,
      "new_path": "tests/rustdoc-ui/output-format-doctests-unstable.stderr"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "7b5e7eaf998d43e6e2801924e94066d871831b9e",
      "new_mode": 33188,
      "new_path": "tests/rustdoc-ui/output-format-irjson-emit-depinfo.rs"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "88ba753616bb933da5ec5ba12f56ebf35632f546",
      "new_mode": 33188,
      "new_path": "tests/rustdoc-ui/output-format-irjson-unstable.rs"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "dd9cea9301189bc2b5448b6d3b61356f367beb34",
      "new_mode": 33188,
      "new_path": "tests/rustdoc-ui/output-format-irjson-unstable.stderr"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "8d8e8c6d1228170a7a7050f40f27d78a6927e3da",
      "new_mode": 33188,
      "new_path": "tests/rustdoc-ui/output-format-json-emit-html.html_non_static_coverage.stderr"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "bc1ddc1b155d14ea809b966ae2dc9a07e69a00cc",
      "new_mode": 33188,
      "new_path": "tests/rustdoc-ui/output-format-json-emit-html.html_static_coverage.stderr"
    },
    {
      "type": "modify",
      "old_id": "7ce3bf756ec92ee56a6ec996006d96ce5e6a3941",
      "old_mode": 33188,
      "old_path": "tests/rustdoc-ui/output-format-json-emit-html.rs",
      "new_id": "f97392bab5b68e40a6bfced7ba7e41d145b0890d",
      "new_mode": 33188,
      "new_path": "tests/rustdoc-ui/output-format-json-emit-html.rs"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "281a9ceb4cfd787d7eb1dff8e290ed1b7cf2622e",
      "new_mode": 33188,
      "new_path": "tests/rustdoc-ui/output-format-unknown.rs"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "0f34e62b628ef3159264237c86c6cd15d593f24a",
      "new_mode": 33188,
      "new_path": "tests/rustdoc-ui/output-format-unknown.stderr"
    }
  ]
}
