-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Internal compiler docs is broken on master #44629
Comments
Yeah I kept hitting this too, but at this stage the compiler doc build is more often broken than not so I didn't look too deeply. IIRC proc macros don't work on stage1. Being able to skip to stage 2 and document that would be enough. |
I tried to reproduce it on macOS. The error emitted was:
The
so on macOS it should be something fixable by adjusting the rpath. I'm not sure about the treatment on other OS. |
The problem is basically that rustc doesn't really handle the |
I'm trying to see if just adding EDIT: Currently I'm applying #13857 to all OS. |
I just read #45366 and it sounds like the internal docs should build again. Did I get that right, @ollie27? I'll run my rustc-internal-docs program again when #45366 gets merged to see how it goes. |
@Michael-F-Bryan yeah, the compiler docs are building fine for me with #45366. |
rustbuild: Don't try to build rustdoc API docs with compiler docs rustdoc is built separately to rustc now so the docs would need to be generated separately as well. Also rustdoc doesn't build at stage 1 which prevented the compiler docs being built at stage 1. Fixes: #44629
I don't think this has already been reported, but it looks like generating documentation for internal rustc crates is currently broken. This is probably because of an error in bootstrap or rustbuild where the wrong
-L
flags are being passed to rustdoc, becausebuild/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libproc_macro-6210e4b46662ec28.so
(the file which it says is missing) already exists on my system.According to my rustc-internal-docs tool, this breaks documentation generation for 32 of the ~60 internal crates in the compiler.
Steps to Reproduce
config.toml
as described in document internal rustc items./x.py doc
(possibly adding--stage 1
so you don't compile stage 2 things unnecessarily)Output:
The text was updated successfully, but these errors were encountered: