mirror of
https://github.com/rust-lang/rust.git
synced 2026-01-20 07:00:37 +00:00
Suggest calling method on nested field when struct is missing method Similar to the suggestion to change `x.field` to `x.nested.field`, implement a similar suggestion for when `x.method()` should be replaced with `x.nested.method()`.
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.