)]}'
{
  "commit": "94c43239af2c7ecf081af4fa734d50f603dd67f1",
  "tree": "c97d4c706ef8acb3ee45dd357b1e968352912df1",
  "parents": [
    "bb6593248ba7051131545054deb60658cf92c729"
  ],
  "author": {
    "name": "Theemathas Chirananthavat",
    "email": "theemathas@gmail.com",
    "time": "Fri Nov 28 21:10:44 2025 +0700"
  },
  "committer": {
    "name": "Tim (Theemathas Chirananthavat)",
    "email": "theemathas@gmail.com",
    "time": "Sat May 23 21:05:30 2026 +0700"
  },
  "message": "Allow shortening lifetime in CoerceUnsized for \u0026mut\n\nThis modifies the \u0026mut -\u003e \u0026mut CoerceUnsized impl so that, it can\nshorten the lifetime.\n\nNote that there are already two impls that allow shortening the lifetime\nlike this (the \u0026mut T -\u003e \u0026U and the \u0026T -\u003e \u0026U impls). So this change\nmakes the impls consistent with each other.\n\nI initially tried to also do the same to the CoerceUnsized impl for\ncore::cell::{Ref, RefMut}. However, this can\u0027t be done because\nRef and RefMut \"store\" the lifetime and the data in different fields,\nand CoerceUnsized can only coerce one field.\n\nThis change has an effect on stable code, since it allows shortening\nlifetimes inside invariant types via a \u0026mut -\u003e \u0026mut unsize coercion.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "45a6e973ca71632008199e63b1ae9d5d8b4b4ab0",
      "old_mode": 33188,
      "old_path": "library/core/src/ops/unsize.rs",
      "new_id": "aade68df2b6cef8ac04e9e8fe9478f741747c212",
      "new_mode": 33188,
      "new_path": "library/core/src/ops/unsize.rs"
    },
    {
      "type": "modify",
      "old_id": "8bf61f14b4db073e9fc395bc9304e95605b7cf1e",
      "old_mode": 33188,
      "old_path": "tests/ui/coercion/unsize-lifetime-shrinking.rs",
      "new_id": "9f6be03476e69460cd8bf9e5231bfffc90433972",
      "new_mode": 33188,
      "new_path": "tests/ui/coercion/unsize-lifetime-shrinking.rs"
    },
    {
      "type": "modify",
      "old_id": "9d9458eb9c6ad5564b8318488b6cba04c14225c1",
      "old_mode": 33188,
      "old_path": "tests/ui/coercion/unsize-lifetime-shrinking.stderr",
      "new_id": "3a6552a14973591e782ac6a5501d6bb69973727b",
      "new_mode": 33188,
      "new_path": "tests/ui/coercion/unsize-lifetime-shrinking.stderr"
    }
  ]
}
