Files
rust/tests/ui/impl-trait
Stuart Cook 565d1bb950 Rollup merge of #151744 - enthropy7:fix-refining-impl-trait-rtn, r=davidtwco
fix refining_impl_trait suggestion with return_type_notation

using `#![feature(return_type_notation)] `on top of `refining_impl_trait` made the lint suggest a pretty wild “wrap the body in `<Self as Trait>::f(..)”` fix instead of the simple “just copy the return type from the trait”. this patch makes the lint always suggest the plain return-type replacement based on the trait signature (by grabbing the original snippet when possible), so you don’t get RTN-style desugarings in the help

new test here

fixes rust-lang/rust#151663
2026-02-23 13:31:59 +11:00
..
2025-05-09 02:35:18 +00:00
2026-02-17 16:51:44 +00:00
2025-11-27 11:19:00 -05:00
2025-04-03 11:13:10 +02:00
2025-06-30 11:50:19 +05:00
2024-06-13 10:41:52 +00:00
2024-04-08 15:00:03 +00:00
2024-08-17 12:43:25 -04:00
2024-06-19 08:28:31 +00:00
2024-06-19 08:28:31 +00:00
2024-06-19 08:40:29 +00:00
2025-08-20 11:10:38 +02:00
2025-11-27 14:13:58 -05:00
2025-11-27 14:13:58 -05:00
2025-11-27 14:13:58 -05:00