Tweaks in and around rustc_middle by nnethercote · Pull Request #137305 · rust-lang/rust (original) (raw)

The comments didn't make much sense to me. I asked Matthew Jasper on Zulip about it and they said:

I think that at the time I wanted to replace all (or most of) this with a reference to the HIR Id of the variable. I'll give this a look to see if it's still a reasonable idea, but removing the comments is fine.

and then:

I don't think that changing this to an HirId would be better, recovering the information from the HIR seems like too much effort in exchange for making the MIR a little smaller.