)]}'
{
  "commit": "df734af6ae8a7fdc287c5da23fe610573bf2a761",
  "tree": "1a236ce0bba92bb58fe5f812177c91926fe536fa",
  "parents": [
    "67bfe3ad49f017d6cdc9cc5522eefafe550a87de"
  ],
  "author": {
    "name": "Michael Howell",
    "email": "michael@notriddle.com",
    "time": "Fri Jul 24 14:06:31 2026 -0700"
  },
  "committer": {
    "name": "Guillaume Gomez",
    "email": "contact@guillaume-gomez.fr",
    "time": "Mon Aug 24 15:37:47 2026 +0200"
  },
  "message": "rustdoc: clean up some unneeded table lint code\n\nThe essential problem is that, with this table:\n\n```text\none |\n----|\n  a | b | c\n  a | b |\n  a | b\n  a |\n```\n\nAnd this logic:\n\n```rust\nlet too_many_pipes \u003d divider_count \u003e expected_cells + 1;\n```\n\n`expected_cells + 1` winds up as 2, so you get this warning:\n\n```text\nerror: unused content after last table cell\n  --\u003e $DIR/invalid_markdown_table.rs:81:14\n   |\nLL |     //!   a | b | c\n   |              ^^^^^^ this content is discarded\n\nerror: unused content after last table cell\n  --\u003e $DIR/invalid_markdown_table.rs:83:14\n   |\nLL |     //!   a | b |\n   |              ^^^^ this content is discarded\n\nerror: unused content after last table cell\n  --\u003e $DIR/invalid_markdown_table.rs:85:14\n   |\nLL |     //!   a | b\n   |              ^^ this content is discarded\n```\n\nWe really want our warning to give the suggest-escaping flow, like this:\n\n```text\nerror: table row has too many columns\n  --\u003e $DIR/invalid_markdown_table.rs:81:13\n   |\nLL |     //!   a | b | c\n   |             ^ any content after this column divider is discarded\n   |\n   \u003d help: to escape `|` characters in tables, add a `\\` before them like `\\|`\n\nerror: table row has too many columns\n  --\u003e $DIR/invalid_markdown_table.rs:83:13\n   |\nLL |     //!   a | b |\n   |             ^ any content after this column divider is discarded\n   |\n   \u003d help: to escape `|` characters in tables, add a `\\` before them like `\\|`\n\nerror: unused content after last table cell\n  --\u003e $DIR/invalid_markdown_table.rs:85:14\n   |\nLL |     //!   a | b\n   |              ^^ this content is discarded\n```\n\nBy only scanning the text between the end of the last cell and the row,\ninstead of doing the entire row, we don\u0027t have to re-implement as much\nof pulldown-cmark\u0027s logic.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "cf04fbf82d72384ab32a23b99ca6111feb576d02",
      "old_mode": 33188,
      "old_path": "src/librustdoc/passes/lint/invalid_markdown_table.rs",
      "new_id": "dd44f2ec92445b3f43393748b33d58a14c3f4586",
      "new_mode": 33188,
      "new_path": "src/librustdoc/passes/lint/invalid_markdown_table.rs"
    },
    {
      "type": "modify",
      "old_id": "8ba4da3b970a6bddfa76208fd12583cd87a5a667",
      "old_mode": 33188,
      "old_path": "tests/rustdoc-ui/lints/invalid_markdown_table.rs",
      "new_id": "d910af1266c1923348159cde8c4d8c26e61bea5e",
      "new_mode": 33188,
      "new_path": "tests/rustdoc-ui/lints/invalid_markdown_table.rs"
    },
    {
      "type": "modify",
      "old_id": "5f0b4e2416521bcfd3f863b31765eb84e1c935f1",
      "old_mode": 33188,
      "old_path": "tests/rustdoc-ui/lints/invalid_markdown_table.stderr",
      "new_id": "87321c77dfdfce56f41bdf48aa065d65c9fc9b89",
      "new_mode": 33188,
      "new_path": "tests/rustdoc-ui/lints/invalid_markdown_table.stderr"
    }
  ]
}
