-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Rustdoc support API in rustc #59790
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
I disagree, the changes were unnecessary, or in the wrong part of the codebase. There is nothing wrong to supporting the |
To restate that last bit (about That means it wouldn't have been clear how to refactor the code later without looking at the commit history. This is a risk we shouldn't take IMO, and non-rustc changes that touch rustc crates should require more scrutiny, rustdoc just happens to be where I've noticed this problem. |
For the non-local items issue: I asked about it (but not clearly enough, my bad) here. ;) I'm all for supporting About making a rustdoc interface: not sure it is a good idea (I lack skills to confidently make such a statement though) since it'd force to support yet another interface. What I'd prefer would be a way for rustdoc contributors to avoid making too much changes into rustc internals. It generally ends up being a lot of questions asked to the compiler team members and the result are generally not completely satisfying for both sides. No clue how such a thing would be possible unfortunately... |
For questions, please PM me on IRC or Discord, even if I'm not active in all channels. |
I think I'll go for private messages directly then. |
nominating for discussion at rustc meeting: I want to know if there's actual action items here that we are planning to take, or if we are going to consider this an artifact of an (exceptional?) process failure. |
Some thoughts from the recent compiler meeting: I think identifying functionality that is rustdoc specific with I also think that -- longer term -- it would be great if we tried to create a consistent, stable-ish query API that tools like rustdoc, clippy, the RLS, and other things could use. This has been a long-standing goal but it's a non-trivial design effort to do. I'm not exactly sure what the goal of this specific issue is, though, it's probably not that broad. |
#59789 reverts some changes made to rustc internals that were rustdoc specific (and would be wrong if the compiler actually ended up using these changes, even if they solve a rustdoc problem).
Ideally we'd expose some
rustdoc_foo
methods that offer exactly what rustdoc needs, instead of changing the regular compiler-code.cc @rust-lang/compiler @rust-lang/rustdoc
The text was updated successfully, but these errors were encountered: