)]}'
{
  "commit": "9260f2ee472d875b7e9731d109fc76ba2b4f0202",
  "tree": "cd5fb242b2dda77aee2b9ea1ce2b9583e8c2c925",
  "parents": [
    "40557f6225e337d68c8d4f086557ce54135f5dd9"
  ],
  "author": {
    "name": "albab-hasan",
    "email": "albabhasan276@gmail.com",
    "time": "Fri Jun 26 22:59:23 2026 +0600"
  },
  "committer": {
    "name": "albab-hasan",
    "email": "albabhasan276@gmail.com",
    "time": "Fri Jun 26 23:28:41 2026 +0600"
  },
  "message": "fix: don\u0027t produce invalid `Trait\u003cA\u003e\u003cB\u003e` in \"consider further restricting this bound\" suggestion\n\nwhen a bound already has generic args (e.g. `impl Pair\u003cLeft \u003d A\u003e`) the \"consider further restricting this bound\" suggestion would generate invalid syntax by appending a new `\u003cRight \u003d B\u003e` producing `Pair\u003cLeft \u003d A\u003e\u003cRight \u003d B\u003e`.\n\nthe fix detects when the insertion point immediately follows a `\u003e` and merges into the existing arg list instead producing the valid `Pair\u003cLeft \u003d A, Right \u003d B\u003e`.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "fadf1ee2ee384bf196474d42c0304621383c0410",
      "old_mode": 33188,
      "old_path": "compiler/rustc_middle/src/ty/diagnostics.rs",
      "new_id": "ec9b73d415f933f791809e994f2acb5256d5dce2",
      "new_mode": 33188,
      "new_path": "compiler/rustc_middle/src/ty/diagnostics.rs"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "912d92fdc762f51b9c87223c73af8f71934546bd",
      "new_mode": 33188,
      "new_path": "tests/ui/suggestions/restrict-bound-already-has-generic-args.rs"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "a284f2adb366cd71b1735abe198f8e6595c43905",
      "new_mode": 33188,
      "new_path": "tests/ui/suggestions/restrict-bound-already-has-generic-args.stderr"
    }
  ]
}
