)]}'
{
  "commit": "3ba0ea9684c8dcc4cdd5163819a6e402beef3f7f",
  "tree": "13569c23c3c7cb3df22c126b35e712a6b04e3457",
  "parents": [
    "17349fa6316747dddabcc3cce85450f01a7f6e22",
    "7d5d73724a1ae1524a7a0a08ee313310614cb4d4"
  ],
  "author": {
    "name": "Trevor Gross",
    "email": "tg@trevorgross.com",
    "time": "Mon Sep 28 23:20:39 2026 -0500"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Mon Sep 28 23:20:39 2026 -0500"
  },
  "message": "Rollup merge of #161712 - theemathas:stab-into-ok-err, r\u003dnia-e\n\nStabilize `Result::into_{ok,err}`\n\nTracking issue: https://github.com/rust-lang/rust/issues/61695\n\n---\n\nAs evidence of the demand of this API, here are some instances of people having written functions for this functionality:\n* https://github.com/meteroid-oss/meteroid/blob/6cc14c4a444c6ae4889c603f5cb275ea626d7507/crates/common-utils/src/misc.rs#L7\n* https://github.com/mokeyish/smartdns-rs/blob/788e83fa72477ebcf1c6a7f4482359353d29c480/src/server/http.rs#L93\n* https://github.com/nostrdevkit/nostr/blob/ea38c0e3b2fc2717a4a55d019560a5574baf8cd0/nostr/src/util/mod.rs#L120\n* https://github.com/ngrok/ngrok-rust/blob/3d5131559948ba9932dd0a450474fd1d19d206eb/ngrok/examples/tls.rs#L92\n* https://github.com/octopii-rs/octopii/blob/b54c112d7db7ed1195dd4f600b4b786df85c8e7e/openraft/openraft/src/error/into_ok.rs#L10\n* https://github.com/TeXitoi/keyseebee/blob/30956f62e618ed754c15af66f8ade70269fef89a/firmware/src/main.rs#L54\n\n---\n\nAPI being stabilized:\n\n```rust\nimpl\u003cT, E\u003e Result\u003cT, E\u003e {\n    pub fn into_ok(self) -\u003e T\n    where\n        E: Into\u003c!\u003e\n    { .... }\n    pub fn into_err(self) -\u003e E\n    where\n        T: Into\u003c!\u003e,\n    { .... }\n}\n```\n\n---\n\nImplementation history: (I\u0027m including only ones that touches the public API being stabilized, and not documentation or constification)\n\n* https://github.com/rust-lang/rfcs/pull/2799\n* https://github.com/rust-lang/rust/pull/66045\n* https://github.com/rust-lang/rust/pull/83421\n* https://github.com/rust-lang/rust/pull/92444\n",
  "tree_diff": []
}
