intellij-rust / intellij-rust

Rust plugin for the IntelliJ Platform
https://intellij-rust.github.io
MIT License
4.53k stars 379 forks source link

Implicit coercions visualization #1815

Open vlad20012 opened 7 years ago

vlad20012 commented 7 years ago

In Kotlin we have specific highlighting for smart casts and a tooltips about it image

I want the same for non-trivial deref coercions and reference coercions.

I.e. in this case at the line

WrapperWrapper(RefWrapper(w))

w implicitly coerces to &u32 that may be done explicitly via &**w.

I think, the same can be applied for a regular dot exprs.

vlad20012 commented 5 years ago

FYI I made a WIP commit with this feature about an year ago =) There was some problems, so I postponed it. image