rustdoc links point to function headers instead of the whole function starting from Rust 1.51 #100264
Labels
C-bug
Category: This is a bug.
P-low
Low priority
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Milestone
Original, before 1.51: https://doc.rust-lang.org/1.50.0/std/primitive.array.html#method.map points to https://doc.rust-lang.org/1.50.0/src/core/array/mod.rs.html#428-464
Regression, starting from 1.51: https://doc.rust-lang.org/1.51.0/std/primitive.array.html#method.map points to https://doc.rust-lang.org/1.51.0/src/core/array/mod.rs.html#429-431
I expected to see this happen: line numbers should cover the whole function
Instead, this happened: line numbers cover only the header of a function.
However, it's not stable. Sometimes, it points to the header only:
Sometimes, to the first line of the header:
Sometimes, to the whole function:
https://github.com/rust-lang/rust/blob/master/RELEASES.md#rustdoc-4
Version it worked on
It most recently worked on: 1.50
Version with regression
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: