{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreicxqgo7ioc7x3idfbxlpu4yqorqythfqzqx7djyowjzmnl6hjwylq",
"uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3ml25xt6fy4e2"
},
"path": "/t/mutation-creation-of-hir/24214#post_9",
"publishedAt": "2026-05-04T16:38:24.000Z",
"site": "https://internals.rust-lang.org",
"textContent": "> Since directly mutating the HIR did not work well, the rewrites were kept at the AST level. Whenever additional information was needed, the AST was lowered to HIR to obtain it.\n\nHow were you able to map the information found on the HIR back to the AST to perform your modifications based on it? I am currently using spans but I am not sure if this approach is reliable. Some insight on this would be very helpful. Thank you both.",
"title": "Mutation/Creation of HIR"
}