-
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
intra-doc links: crate::ptr
on a re-export of core::slice is not resolved in alloc
#76106
Comments
Direct link to the failing intra-doc link: 6aae4a2#diff-e5a4dbd27d5eadb7a3cf746c396f5420R6430 |
Some more test cases from #76235:
|
GitHub was overeager, this is not fixed, just worked around. |
@dylni that's a separate issue - |
The fact that it works with |
Also, I'm starting to think we should revert #56922, it's causing more trouble than it's worth. |
Sure: #77193 |
That explains why there aren't any warnings. I agree it might be better to revert that fix. If I'm running with P.S. Is it expected that |
It's definitely expected that it doesn't resolve: You said 'a link to `[String]`', which gets the backticks stripped and rustdoc then sees
rust/src/librustdoc/passes/collect_intra_doc_links.rs Lines 931 to 933 in 78a0894
|
My intention was to link to the slice primitive (i.e., Also, sorry for hijacking this issue. |
Sure, go ahead and open an issue for that too. Do you mind joining the discord so we can talk about this more without hijacking the issue further? https://discord.gg/4yEYPuT |
Discord is refusing to load messages :( |
Closing as duplicate of #76106, which has more discussion. |
They do now! #76934 :) |
It's something to do specifically with the re-export because using
ptr
instead ofcrate::ptr
works, possibly because it's available in bothalloc::slice
andcore::slice
.I don't understand why this is failing :/ the error is being returned directly from
rustc_resolve
:In fact if you look at the debug logging it says itself that it's looking at core:
parent DefId(1:6606 ~ core[c85e]::slice[0])
. Not sure what's going wrong.It would be great to find an MCVE of this.
Originally posted by @jyn514 in #75932 (comment)
The text was updated successfully, but these errors were encountered: