External Publication
Visit Post

Method auto-(de)ref (and lack of it) in RFC 132 ufcs

Rust Internals [Unofficial] February 14, 2026
Source

I'm just thinking... a flag to enable auto(de)ref in ufcs? Like T::method(autoref x, ...). The main point is that RFC 3913 I've linked is a postfix syntax that has auto(de)ref, and if it gets accepted, I don't want it to feel like "I have to switch from prefix (traditional ufcs) to postfix to get auto(de)ref, that just feels inconsistent".

Discussion in the ATmosphere

Loading comments...