Uh oh!
There was an error while loading. Please reload this page.
More intra doc links - #77875
Conversation
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Oof, this is a bug in intra-doc links. prim should apply to the whole item, not to the type.
warning: incompatible link kind for `char::from_u32`
--> tmp.rs:1:6
|
1 | /// [char::from_u32()]
| ^^^^^^^^^^^^^^^^ help: to link to the builtin type, prefix with `prim@`: `prim@char::from_u32`
= note: this link resolved to a builtin type, which is not a function
That said, I guess it works as-is, it's just inconsistent with the rest of intra-doc links ... @Manishearth what do you think? I think if we made it apply to the whole item there'd be no way to disambiguate between primitives and modules for associated items.
There was a problem hiding this comment.
Hmm, I think it could still use core::primitive::char::from_u32 actually. That seems better anyway to remove the ambiguity.
I didn't know core::primitive existed when I added prim@ ... maybe we should just get rid of that disambiguator altogether to be consistent with rustc_resolve?
There was a problem hiding this comment.
If you end up using core::primitive please ping me so I can update intraconv :)
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
jyn514
commented
Oct 13, 2020
Oh sorry - the current failures are another bug that was recently fixed: #77267. I guess this has to wait until the beta bump then :/ |
4609ddf to
d7fc2f8Comparepoliorcetics
commented
Oct 25, 2020
Now that #77267 has been closed, I rebased on |
poliorcetics
commented
Oct 25, 2020
This fails on the
|
bors
commented
Nov 8, 2020
☔ The latest upstream changes (presumably #78874) made this pull request unmergeable. Please resolve the merge conflicts. Note that reviewers usually do not review pull requests until merge conflicts are resolved! Once you resolve the conflicts, you should change the labels applied by bors to indicate that your PR is ready for review. Post this as a comment to change the labels: |
d7fc2f8 to
4f50d0aComparepoliorcetics
commented
Nov 19, 2020
I couldn't transform links like those so I simply let them as they are for now so that this PR can be merged - /// [`len_utf8()`]: #method.len_utf8+ /// [`len_utf8()`]: crate::primitive::char::len_utf8()
OR
+ /// [`len_utf8()`]: prim@char::len_utf8()
OR
+ /// [`len_utf8()`]: char::len_utf8() |
jyn514
commented
Nov 19, 2020
It looks like this is still broken unfortunately. |
This comment has been minimized.
This comment has been minimized.
d558e60 to
1735a42Comparepoliorcetics
commented
Nov 23, 2020
@rustbot modify labels: +S-waiting-on-review -S-waiting-on-author |
Uh oh!
There was an error while loading. Please reload this page.
jyn514
commented
Nov 29, 2020
I think this might be fixed by #76467. I'll add a test case. |
1735a42 to
5bdd640Comparejyn514
commented
Nov 30, 2020
@bors r+ Thanks for sticking with this! |
bors
commented
Nov 30, 2020
📌 Commit 5bdd640 has been approved by |
bors
commented
Nov 30, 2020
⌛ Testing commit 5bdd640 with merge 796a2a9bbe7614610bd67d4cd0cf0dfff0468778... |
bors
commented
Dec 1, 2020
💥 Test timed out |
jyn514
commented
Dec 1, 2020
@bors retry |
bors
commented
Dec 1, 2020
bors
commented
Dec 1, 2020
☀️ Test successful - checks-actions |
Helps with #75080.
I did a commit by group of file, I can squash if wanted.
@rustbot modify labels: T-doc, A-intra-doc-links
r? @jyn514