)]}'
{
  "commit": "4d6b52e1ccdd68ffde17d6cd903be87fae985ff4",
  "tree": "52f51d893703bcad3429fccb0c1f24ca8aee536d",
  "parents": [
    "34f4a807e2d84184fff4e42d4539092569b6fcd6"
  ],
  "author": {
    "name": "Sasha Pourcelot",
    "email": "sasha.pourcelot@protonmail.com",
    "time": "Mon Oct 12 12:16:47 2026 +0200"
  },
  "committer": {
    "name": "Sasha Pourcelot",
    "email": "sasha.pourcelot@protonmail.com",
    "time": "Mon Oct 12 14:14:37 2026 +0200"
  },
  "message": "Avoid double-checking self.bound_vars\u0027 len in ValidateBoundVars\u0027 TypeVisitor impl\n\n`ValidateBoundVars` has three instances of the following:\n\n```rust\nif list.len() \u003c\u003d idx {\n    panic!();\n}\nbound_ty.assert_eq(list.get(idx).unwrap());\n```\n\nThe length check on `list` ends up being performed twice: once\nin the function itself and once in the implementation of the `get`\nmethod.\n\nReplacing this by a `let-else` allows to ensure that the bound check is\ndone exactly once. This results in IC improvements ranging from -0.26% to\n-0.08% except 5 benchmarks that end up being +0.05% to +0.08%.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "068d8261659f072ebb0a9bcfaac097ba4957b933",
      "old_mode": 33188,
      "old_path": "compiler/rustc_type_ir/src/binder.rs",
      "new_id": "7f67435428b6c4ccc81a2d4ae5666fbe9b04cf42",
      "new_mode": 33188,
      "new_path": "compiler/rustc_type_ir/src/binder.rs"
    }
  ]
}
