From ff35f02dfa22a021de28d8fb31d7ce36758e0af8 Mon Sep 17 00:00:00 2001 From: Trivaxy Date: Thu, 1 Jan 2026 13:09:29 +0300 Subject: [PATCH 1/2] Update link in suggestion for pinning self --- compiler/rustc_hir_typeck/src/method/suggest.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_hir_typeck/src/method/suggest.rs b/compiler/rustc_hir_typeck/src/method/suggest.rs index 331fb91becadd..9c2220a672a0b 100644 --- a/compiler/rustc_hir_typeck/src/method/suggest.rs +++ b/compiler/rustc_hir_typeck/src/method/suggest.rs @@ -3590,7 +3590,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> { see documentation for `std::pin::Pin`" )); err.help("self type must be pinned to call `Future::poll`, \ - see https://rust-lang.github.io/async-book/04_pinning/01_chapter.html#pinning-in-practice" + see https://rust-lang.github.io/async-book/part-reference/pinning.html" ); } From d7feb672205e55c2cf67abfdd01c180bdb81ca76 Mon Sep 17 00:00:00 2001 From: Trivaxy Date: Thu, 1 Jan 2026 13:56:55 +0300 Subject: [PATCH 2/2] Fix tidy check --- compiler/rustc_hir_typeck/src/method/suggest.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/compiler/rustc_hir_typeck/src/method/suggest.rs b/compiler/rustc_hir_typeck/src/method/suggest.rs index 9c2220a672a0b..8f70e70f2090c 100644 --- a/compiler/rustc_hir_typeck/src/method/suggest.rs +++ b/compiler/rustc_hir_typeck/src/method/suggest.rs @@ -3589,8 +3589,9 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> { "method `poll` found on `Pin<&mut {ty_str}>`, \ see documentation for `std::pin::Pin`" )); - err.help("self type must be pinned to call `Future::poll`, \ - see https://rust-lang.github.io/async-book/part-reference/pinning.html" + err.help( + "self type must be pinned to call `Future::poll`, \ + see https://rust-lang.github.io/async-book/part-reference/pinning.html", ); }