summary refs log tree commit diff
path: root/src/librustc_metadata/rmeta/decoder.rs
AgeCommit message (Collapse)AuthorLines
2019-12-13Require stable/unstable annotations for the constness of all stable ↵Oliver Scherer-0/+4
functions with a `const` modifier
2019-12-05rustc: Apply clearer naming to BodyAndCache, fix Deref impl, remove unneeded ↵Paul Daniel Faria-3/+3
Index impl, remove body fn rustc_codegen_ssa: Fix BodyAndCache reborrow to Body and change instances of body() call to derefence rustc_mir: Fix BodyAndCache reborrow to Body and change intances of body() call to derefence
2019-12-03Explain why "loading" constness from extern crates does not necessarily load ↵Oliver Scherer-1/+5
anything
2019-12-03Check intrinsics for callability in const fnsMahmut Bulut-0/+2
2019-12-02Remove HasLocalDecls impl from BodyCache's, properly reborrow to Body, ↵Paul Daniel Faria-2/+2
rename all body_cache back to body
2019-12-02Fix remaining compilation issuesPaul Daniel Faria-4/+10
2019-12-02Simplify BodyCache impl and fix all remaining type errors in librustc_mir ↵Paul Daniel Faria-4/+3
(lifetime errors still exist)
2019-12-02Fix typo caused by rebasingPaul Daniel Faria-1/+1
2019-12-02Move predecessors cache back to its own typePaul Daniel Faria-1/+1
This ensures that the cache can be properly ignored during encoding and decoding. Fix panics that arose due to lack of encoding
2019-11-28rustc_metadata: Privatize `CrateMetadata::root`Vadim Petrochenkov-1/+17
2019-11-28rustc_metadata: Privatize all fields of `CrateRoot`Vadim Petrochenkov-0/+48
All of them are read-only
2019-11-28rustc_metadata: Privatize `CrateMetadata::dep_kind`Vadim Petrochenkov-1/+9
2019-11-28rustc_metadata: Privatize `CrateMetadata::source`Vadim Petrochenkov-1/+5
2019-11-28rustc_metadata: Privatize `CrateMetadata::extern_crate`Vadim Petrochenkov-1/+10
2019-11-28rustc_metadata: Privatize `CrateMetadata::dependencies`Vadim Petrochenkov-2/+10
2019-11-27rustc_metadata: remove Encodable requirements from LazyMeta impls.Eduard-Mihai Burtescu-5/+5
2019-11-27rustc_metadata: replace PerDefTable<T> with Table<DefIndex, T>.Eduard-Mihai Burtescu-4/+4
2019-11-20Rollup merge of #66496 - petrochenkov:metapriv2, r=eddybMazdak Farrokhzad-23/+157
rustc_metadata: Privatize more things Continuation of https://github.com/rust-lang/rust/pull/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
2019-11-17rustc_metadata: Remove `CrateMetadata::is_proc_macro_crate`Vadim Petrochenkov-11/+7
2019-11-17rustc_metadata: Stop leaking `Lazy` from the `rmeta` moduleVadim Petrochenkov-7/+19
2019-11-17rustc_metadata: Move `CrateMetadata` into `decoder.rs`Vadim Petrochenkov-6/+115
It allows to make most of its fields private
2019-11-17rustc_metadata: Move some structs from `cstore` to `decoder`Vadim Petrochenkov-4/+21
This allows to privatize their fields.
2019-11-15Remove newtype for qualifs in `rustc_metadata`Dylan MacKenzie-1/+1
We have a proper type for these now, so the wrapper is no longer necessary.
2019-11-15Fix nits from reviewDylan MacKenzie-1/+1
2019-11-15Use a bespoke type for the result of `mir_const_qualif`Dylan MacKenzie-1/+1
2019-11-10Merge hir::Mutability into ast::Mutability.Camille GILLOT-2/+2
2019-11-07rustc_metadata: Rename `schema` to `rmeta`Vadim Petrochenkov-0/+1396
And change `rmeta.rs` to `rmeta/mod.rs`