Skip to content
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

Move stable hasher out of rustc_middle #79046

Closed
wants to merge 15 commits into from
Closed

Conversation

cjgillot
Copy link
Contributor

Continuing the effort of dismantling rustc_middle,
rustc_middle::ich and half of rustc_middle::middle are moved into a dependency crate.

The new crate name is open for bikeshedding.

@rust-highfive
Copy link
Collaborator

r? @estebank

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 14, 2020
pub mod ich;
pub mod limits;
pub mod privacy;
pub mod stability;
Copy link
Member

Choose a reason for hiding this comment

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

This seems like a very disjoint set of modules -- are they all interdependent? If not, it seems odd to move them into a new crate as a single group.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I started by aiming at cstore, which is needed for ICH, and with what I could in rustc_middle::middle.
I welcome suggestions on the correct place for each module.

@Mark-Simulacrum
Copy link
Member

We'll want to perf run this once the merge conflict is resolved.

@jyn514 jyn514 added A-query-system Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Nov 14, 2020
@bors
Copy link
Contributor

bors commented Nov 15, 2020

☔ The latest upstream changes (presumably #79070) made this pull request unmergeable. Please resolve the merge conflicts.

Note that reviewers usually do not review pull requests until merge conflicts are resolved! Once you resolve the conflicts, you should change the labels applied by bors to indicate that your PR is ready for review. Post this as a comment to change the labels:

@rustbot modify labels: +S-waiting-on-review -S-waiting-on-author

@cjgillot
Copy link
Contributor Author

@rustbot modify labels: +S-waiting-on-review -S-waiting-on-author

@Xanewok
Copy link
Member

Xanewok commented Nov 16, 2020

@bors try @rust-timer queue

@rust-timer
Copy link
Collaborator

Awaiting bors try build completion

@bors
Copy link
Contributor

bors commented Nov 16, 2020

⌛ Trying commit 9c79f60 with merge 683d8cf848cae47f0c8ecfa2d48e9125c843e292...

@petrochenkov petrochenkov self-assigned this Nov 16, 2020
@bors
Copy link
Contributor

bors commented Nov 16, 2020

☀️ Try build successful - checks-actions
Build commit: 683d8cf848cae47f0c8ecfa2d48e9125c843e292 (683d8cf848cae47f0c8ecfa2d48e9125c843e292)

@rust-timer
Copy link
Collaborator

Queued 683d8cf848cae47f0c8ecfa2d48e9125c843e292 with parent f5230fb, future comparison URL.

@rust-timer
Copy link
Collaborator

Finished benchmarking try commit (683d8cf848cae47f0c8ecfa2d48e9125c843e292): comparison url.

Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. Please note that if the perf results are neutral, you should likely undo the rollup=never given below by specifying rollup- to bors.

Importantly, though, if the results of this run are non-neutral do not roll this PR up -- it will mask other regressions or improvements in the roll up.

@bors rollup=never
@rustbot modify labels: +S-waiting-on-review -S-waiting-on-perf

@cjgillot
Copy link
Contributor Author

perf seems neutral.

@petrochenkov
Copy link
Contributor

@cjgillot
Could you explain what is the purpose of introducing rustc_crate if no dependencies on rustc_middle were removed and rustc_middle still depends on rustc_crate?
This doesn't introduce new parallelism and can only make sense if compilation time grows superlinearly with crate size.

@petrochenkov petrochenkov 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 Nov 17, 2020
@cjgillot
Copy link
Contributor Author

I agree. Marking as draft until I can achieve dependency reduction.

@cjgillot cjgillot marked this pull request as draft November 17, 2020 18:27
@cjgillot cjgillot closed this Jan 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-query-system Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html) S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants