Skip to content

rustc_metadata: Privatize more things#66496

Merged
bors merged 10 commits intorust-lang:masterfrom
petrochenkov:metapriv2
Nov 20, 2019
Merged

rustc_metadata: Privatize more things#66496
bors merged 10 commits intorust-lang:masterfrom
petrochenkov:metapriv2

Conversation

@petrochenkov
Copy link
Copy Markdown
Contributor

@petrochenkov petrochenkov commented Nov 17, 2019

Continuation of #66056.

The most notable change here is that CrateMetadata is moved from cstore.rs to decoder.rs.
Most of uses of CrateMetadata fields are in the decoder and uses of root: CrateRoot and other fields are so intertwined with each other that it would be hard to move a part of them into cstore.rs to privatize CrateMetadata fields, so we are going the other way round.

cstore.rs can probably be dismantled now, but I'll leave this to some other day.
Similarly, remaining CrateMetadata fields can be privatized by introducing some getter/setter methods, but not today.

r? @eddyb

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

Labels

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.

4 participants