rustdoc: Remove unnecessary is_crate field from doctree::Module and clean::Module by jyn514 · Pull Request #84460 · rust-lang/rust (original) (raw)

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 andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation20 Commits1 Checks0 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

jyn514

It can be calculated on-demand even without a TyCtxt.

This also changed json::conversions::from_item_kind to take a whole item, which avoids
having to add more and more parameters.

Helps with #76382.

r? @camelid

@jyn514 jyn514 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.

labels

Apr 23, 2021

LingMan

@bors

This comment has been minimized.

camelid

camelid

@jyn514

… clean::Module

It can be calculated on-demand even without a TyCtxt.

This also changed from_item_kind to take a whole item, which avoids having to add more and more parameters.

camelid

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One nit, r=me after that.

@camelid camelid added S-waiting-on-author

Status: This is awaiting some action (such as code changes or more information) from the author.

and removed S-waiting-on-review

Status: Awaiting review from the assignee but also interested parties.

labels

Apr 23, 2021

@jyn514

@bors

📌 Commit e29f46c has been approved by camelid

@bors bors added S-waiting-on-bors

Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

and removed S-waiting-on-author

Status: This is awaiting some action (such as code changes or more information) from the author.

labels

Apr 23, 2021

JohnTitor added a commit to JohnTitor/rust that referenced this pull request

Apr 24, 2021

@JohnTitor

Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request

Apr 24, 2021

@Dylan-DPC

rustdoc: Remove unnecessary is_crate field from doctree::Module and clean::Module

It can be calculated on-demand even without a TyCtxt.

This also changed json::conversions::from_item_kind to take a whole item, which avoids having to add more and more parameters.

Helps with rust-lang#76382.

r? @camelid

Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request

Apr 24, 2021

@Dylan-DPC

rustdoc: Remove unnecessary is_crate field from doctree::Module and clean::Module

It can be calculated on-demand even without a TyCtxt.

This also changed json::conversions::from_item_kind to take a whole item, which avoids having to add more and more parameters.

Helps with rust-lang#76382.

r? @camelid

JohnTitor added a commit to JohnTitor/rust that referenced this pull request

Apr 24, 2021

@JohnTitor

rustdoc: Remove unnecessary is_crate field from doctree::Module and clean::Module

It can be calculated on-demand even without a TyCtxt.

This also changed json::conversions::from_item_kind to take a whole item, which avoids having to add more and more parameters.

Helps with rust-lang#76382.

r? @camelid

JohnTitor added a commit to JohnTitor/rust that referenced this pull request

Apr 24, 2021

@JohnTitor

rustdoc: Remove unnecessary is_crate field from doctree::Module and clean::Module

It can be calculated on-demand even without a TyCtxt.

This also changed json::conversions::from_item_kind to take a whole item, which avoids having to add more and more parameters.

Helps with rust-lang#76382.

r? @camelid

This was referenced

Apr 24, 2021

bors added a commit to rust-lang-ci/rust that referenced this pull request

Apr 24, 2021

@bors

Rollup of 8 pull requests

Successful merges:

Failed merges:

r? @ghost @rustbot modify labels: rollup

@jyn514 jyn514 deleted the doctree-is-crate branch

April 24, 2021 23:03

Labels

C-cleanup

Category: PRs that clean code up or issues documenting cleanup.

S-waiting-on-bors

Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

T-rustdoc

Relevant to the rustdoc team, which will review and decide on the PR/issue.