Skip to content

rustc_metadata: Privatize more things and a couple of other refactorings#66697

Merged
bors merged 13 commits intorust-lang:masterfrom
petrochenkov:nocstore
Nov 29, 2019
Merged

rustc_metadata: Privatize more things and a couple of other refactorings#66697
bors merged 13 commits intorust-lang:masterfrom
petrochenkov:nocstore

Conversation

@petrochenkov
Copy link
Contributor

This PR continues #66496 and hits the point of diminishing returns.
All fields of CrateRoot and CrateMetadata are privatized.
For read-only fields this certainly makes sense, but for a few fields updateable from outside of rmeta.rs (mostly creader.rs) it was done mostly for consistency, I can make them pub(crate) again if requested.

cstore.rs (which became small after #66496) was merged into creader.rs.

A few things noticed while making the privacy changes were addressed in the remaining refactoring commits.

Fixes #66550
r? @eddyb @Mark-Simulacrum

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AllocatorKind::GlobalExe is never constructed

7 participants