mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 20:45:45 +03:00
bef5187e8b
Print the path of a return-position impl trait in trait when `return_type_notation` is enabled When we're printing a return-position impl trait in trait, we usually just print it like an opaque. This is *usually* fine, but can be confusing when using `return_type_notation`. Print the path of the method from where the RPITIT originates when this feature gate is enabled.
For more information about how rustc works, see the rustc dev guide.