]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Auto merge of #66697 - petrochenkov:nocstore, r=eddyb
authorbors <bors@rust-lang.org>
Fri, 29 Nov 2019 14:51:59 +0000 (14:51 +0000)
committerbors <bors@rust-lang.org>
Fri, 29 Nov 2019 14:51:59 +0000 (14:51 +0000)
commitd99e0c6d02b159f305474f58c8c38027bb06e051
tree669f3ce8eae2b58f129fdb237764ce9ff3389291
parentc4375c9dfdd7f31de909f6e9384bac1bf37b44da
parente84c926d4758ba8600a3841d442e888fd2c25f6b
Auto merge of #66697 - petrochenkov:nocstore, r=eddyb

rustc_metadata: Privatize more things and a couple of other refactorings

This PR continues https://github.com/rust-lang/rust/pull/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 https://github.com/rust-lang/rust/issues/66550
r? @eddyb @Mark-Simulacrum