-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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: Get rid of CURRENT_DEPTH
thread-local variable
#82742
Comments
camelid
added
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
E-hard
Call for participation: Hard difficulty. Experience needed to fix: A lot.
labels
Mar 4, 2021
This is tedious, but I don't expect it to be particularly hard. @rustbot label: -E-hard +E-medium |
rustbot
added
E-medium
Call for participation: Medium difficulty. Experience needed to fix: Intermediate.
and removed
E-hard
Call for participation: Hard difficulty. Experience needed to fix: A lot.
labels
Mar 4, 2021
This was referenced Mar 4, 2021
GuillaumeGomez
added a commit
to GuillaumeGomez/rust
that referenced
this issue
Apr 18, 2021
rustdoc: get rid of CURRENT_DEPTH Fixes rust-lang#82742
GuillaumeGomez
added a commit
to GuillaumeGomez/rust
that referenced
this issue
Apr 18, 2021
rustdoc: get rid of CURRENT_DEPTH Fixes rust-lang#82742
GuillaumeGomez
added a commit
to GuillaumeGomez/rust
that referenced
this issue
Apr 18, 2021
rustdoc: get rid of CURRENT_DEPTH Fixes rust-lang#82742
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It turns out
CURRENT_DEPTH
has been around as a thread-local since the beginning of the rustdoc HTML backend, so it's very hard to get rid of it. The issue is that it turns out so many places in rustdoc implicitly depend on it, so threading (haha, get it?) it through all the functions is very tedious.cc https://rust-lang.zulipchat.com/#narrow/stream/266220-rustdoc/topic/what.20is.20CURRENT_DEPTH
The text was updated successfully, but these errors were encountered: