-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Rustdoc should show [src] link for methods #12932
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
…ng#12932. this change made most functions that render the methods to require the render `Context`, so they are now made into `Context` methods.
…ng#12932. this change made most functions that render the methods to require the render `Context`, so they are now made into `Context` methods. Conflicts: src/librustdoc/html/markdown.rs src/librustdoc/html/render.rs src/librustdoc/html/static/main.css Conflicts: src/librustdoc/html/render.rs
Stability is fixed now, just needs |
Triage: no src link on methods as of today. |
We have [src] for impls now. Is that enough? |
@birkenfeld Did this just land? I can’t find these links in https://doc.rust-lang.org/std/ Is it only trait impls on inherent as well? In any case it’s an improvement, but some |
@SimonSapin yep, it was merged recently: #33382 and works for both kinds of impls. It should be visible in the nightly docs already. There appear to be some problems with linking to impls pulled from |
I've opened #43509 to fix this. |
…aumeGomez rustdoc: add [src] links to associated functions inside an impl block While impl blocks currently have a `[src]` link to show the source for the impl block as a whole, individual methods inside that impl block do not. This can pose a problem for structs with a lot of methods, like many in libstd. This change adds little `[src]` links to individual methods that point directly to the function in the bundled source. fixes rust-lang#12932 
…aumeGomez rustdoc: add [src] links to associated functions inside an impl block While impl blocks currently have a `[src]` link to show the source for the impl block as a whole, individual methods inside that impl block do not. This can pose a problem for structs with a lot of methods, like many in libstd. This change adds little `[src]` links to individual methods that point directly to the function in the bundled source. fixes rust-lang#12932 
Test case:
The text was updated successfully, but these errors were encountered: