-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rustdoc: resolve associated traits for non-generic primitive types #92443
Rustdoc: resolve associated traits for non-generic primitive types #92443
Conversation
Some changes occurred in intra-doc-links. cc @jyn514 |
bf43a4f
to
61bc754
Compare
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @ollie27 (or someone else) soon. Please see the contribution instructions for more information. |
This comment has been minimized.
This comment has been minimized.
If I understand this correctly, we have tests that confirm that associated items on primitive types don't work, and because now they work as part of this PR, this test is failing. I suppose I can delete these tests and instead write tests for them working? |
r? @Manishearth |
4fc428e
to
55543ae
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
bdaa71b
to
a61b438
Compare
This comment has been minimized.
This comment has been minimized.
2760760
to
3183a79
Compare
@bors r+ |
📌 Commit 9146339a2d016db07d0461c8c5c0da6b5c19baec has been approved by |
4ac9a3f
to
d0db13f
Compare
Weird... I think those should have been run on CI. |
Weird indeed, I ran these tests locally and they passed. I’ll take a look now |
eb00e14
to
c3785ae
Compare
Okay I think I found the issue: I was using these XPATHs:
I just noticed all other tests in the same directory use
The test that failed is Latest push includes the fix. |
c6dfca4
to
c3c6f79
Compare
c3c6f79
to
973cf63
Compare
@bors r+ |
📌 Commit 973cf63 has been approved by |
@pietroalbini your checks are paying off :) |
…imitive-types, r=Manishearth Rustdoc: resolve associated traits for non-generic primitive types Fixes rust-lang#90703 This seems to work: <img width="457" alt="image" src="https://user-images.githubusercontent.com/2807772/147774059-9556ff96-4519-409e-8ed0-c33ecc436171.png"> I'm just afraid I might have missed some cases / broken previous functionality. I also have not written tests yet, I will have to take a look to see where tests are and how they are structured, but any help there is also appreciated.
…imitive-types, r=Manishearth Rustdoc: resolve associated traits for non-generic primitive types Fixes rust-lang#90703 This seems to work: <img width="457" alt="image" src="https://user-images.githubusercontent.com/2807772/147774059-9556ff96-4519-409e-8ed0-c33ecc436171.png"> I'm just afraid I might have missed some cases / broken previous functionality. I also have not written tests yet, I will have to take a look to see where tests are and how they are structured, but any help there is also appreciated.
…askrgr Rollup of 7 pull requests Successful merges: - rust-lang#92058 (Make Run button visible on hover) - rust-lang#92288 (Fix a pair of mistyped test cases in `std::net::ip`) - rust-lang#92349 (Fix rustdoc::private_doc_tests lint for public re-exported items) - rust-lang#92360 (Some cleanups around check_argument_types) - rust-lang#92389 (Regression test for borrowck ICE rust-lang#92015) - rust-lang#92404 (Fix font size for [src] links in headers) - rust-lang#92443 (Rustdoc: resolve associated traits for non-generic primitive types) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Fixes #90703
This seems to work:
I'm just afraid I might have missed some cases / broken previous functionality.
I also have not written tests yet, I will have to take a look to see where tests are and how they are structured, but any help there is also appreciated.