mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
f92c79e3e0
Tweak how the "copy path" rustdoc button works to allow some accessibility tool to work with rustdoc Fixes https://github.com/rust-lang/rust/issues/155032. It's a bit better in term of "fragility" to retrieve this information: no need to parse text anymore, just to retrieve content. However it relies on HTML. I added extra tests to ensure it won't break without notice. cc @Enyium r? @lolbinarycat
For more information about how librustdoc works, see the rustc dev guide.