Skip to content

Commit 9014fda

Browse files
committed
Update link in suggestion for pinning self
1 parent 6e48b44 commit 9014fda

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

‎compiler/rustc_hir_typeck/src/method/suggest.rs‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3589,8 +3589,9 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
35893589
"method `poll` found on `Pin<&mut {ty_str}>`, \
35903590
see documentation for `std::pin::Pin`"
35913591
));
3592-
err.help("self type must be pinned to call `Future::poll`, \
3593-
see https://rust-lang.github.io/async-book/04_pinning/01_chapter.html#pinning-in-practice"
3592+
err.help(
3593+
"self type must be pinned to call `Future::poll`, \
3594+
see https://rust-lang.github.io/async-book/part-reference/pinning.html",
35943595
);
35953596
}
35963597

‎tests/ui/async-await/issue-108572.stderr‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | fut.poll(cx);
55
| ^^^^ method not found in `impl Future<Output = ()>`
66
|
77
= help: method `poll` found on `Pin<&mut impl Future<Output = ()>>`, see documentation for `std::pin::Pin`
8-
= 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
8+
= help: self type must be pinned to call `Future::poll`, see https://rust-lang.github.io/async-book/part-reference/pinning.html
99
help: consider pinning the expression
1010
|
1111
LL ~ let mut pinned = std::pin::pin!(fut);

0 commit comments

Comments
 (0)