about summary refs log tree commit diff
path: root/src/librustc_metadata/cstore.rs
AgeCommit message (Collapse)AuthorLines
2019-11-28rustc_metadata: Merge `cstore.rs` into `creader.rs`Vadim Petrochenkov-94/+0
2019-11-28rustc_metadata: Privatize `CrateMetadata::dependencies`Vadim Petrochenkov-1/+1
2019-11-28rustc_metadata: Cleanup generation of crate dependency listsVadim Petrochenkov-31/+26
2019-11-17rustc_metadata: Move `CrateMetadata` into `decoder.rs`Vadim Petrochenkov-121/+5
It allows to make most of its fields private
2019-11-17rustc_metadata: Minor cleanupVadim Petrochenkov-2/+2
2019-11-17rustc_metadata: Give a constructor to `CrateMetadata`Vadim Petrochenkov-0/+44
2019-11-17rustc_metadata: Move some structs from `cstore` to `decoder`Vadim Petrochenkov-18/+4
This allows to privatize their fields.
2019-11-11Move allocator_kind to CrateStoreMark Rousskov-0/+3
Similarly to the previous commit, there's no need for this to be in Session and have a Once around it.
2019-11-11Move injected_panic_runtime to CrateStoreMark Rousskov-0/+2
This was essentially a "query" previously (with no key, just always run once when resolving the crate dependencies), and remains so, just now in a way that isn't on Session. This removes the need for the `Once` as well.
2019-11-07rustc_metadata: Rename `schema` to `rmeta`Vadim Petrochenkov-4/+4
And change `rmeta.rs` to `rmeta/mod.rs`
2019-11-07rustc_metadata: Move cstore_impl into mod decoderVadim Petrochenkov-1/+1
2019-10-31Implement dual proc macro hashingmsizanoen-0/+3
This changes the mechanism of `-Z dual-proc-macro` to record the host proc macro hash in the transistive dependency information and use it during dependency resolution instead of resolving only by name.
2019-10-30Change CrateMetadata's source_map_import_info from RwLock to OnceSantiago Pastorino-2/+2
This field is created lazily on first use and after that is read only. That's exactly what Once is for.
2019-10-24rustc_metadata: Minimize use of `Lrc` in crate storeVadim Petrochenkov-6/+6
Crate metadatas are still stored as `Lrc<CrateMetadata>` in `CStore` because crate store has to be cloneable due to `Resolver::clone_outputs`.
2019-10-24rustc_metadata: Remove `RwLock` from `CStore`Vadim Petrochenkov-14/+11
2019-10-24Turn crate store into a resolver outputVadim Petrochenkov-7/+9
2019-10-24rustc: Add a convenience alias for `dyn MetadataLoader + Sync`Vadim Petrochenkov-3/+3
2019-10-16move syntax::ext to new crate syntax_expandMazdak Farrokhzad-1/+1
2019-10-14rustc_metadata: Remove resolutions for extern crate items from `CStore`Vadim Petrochenkov-12/+1
Use a more traditional scheme with providing them as a resolver output
2019-10-14rustc_metadata: Improve documentation of `CrateMetadata`Vadim Petrochenkov-25/+36
2019-10-14rustc_metadata: Privatize private code and remove dead codeVadim Petrochenkov-43/+31
2019-10-09Cache the DepNodeIndex of upstream crates in order to avoid multiple locks ↵Michael Woerister-1/+9
and table lookups on each access of crate metadata.
2019-10-04metadata: Remove `CrateMetadata::name`Vadim Petrochenkov-4/+0
It duplicates `CrateRoot::name`
2019-10-04metadata: Remove `CrateMetadata::host_lib`Vadim Petrochenkov-2/+0
It was only used for retreiving edition, which was a bug. In case of dual proc macros the edition should be taken from the target crate version, like any other metadata.
2019-10-04metadata: Remove `CrateMetadata::imported_name`Vadim Petrochenkov-4/+0
It's entirely irrelevant to crate loading
2019-09-29remove indexed_vec re-export from rustc_data_structurescsmoe-1/+1
2019-08-27metadata: Eliminate `FullProcMacro`Vadim Petrochenkov-6/+1
Fix caching of loaded proc macros
2019-08-20rustc_metadata: replace LazySeq<T> with Lazy<[T]>.Eduard-Mihai Burtescu-4/+4
2019-08-17Serialize additional data for procedural macrosAaron Hill-3/+14
Split off from #62855 This PR deerializes the declaration `Span` and attributes for all procedural macros from their underlying function definitions. This allows Rustdoc to properly render doc comments and source links when inlining procedural macros across crates
2019-08-16Fix a comment for the def_path_table.Edd Barrett-1/+1
The definition path table contains *all* definitions, not just public definitions.
2019-05-22rustc_metadata: parametrize schema::CrateRoot by 'tcx.Eduard-Mihai Burtescu-1/+5
2019-04-14Properly parse '--extern-private' with name and pathAaron Hill-1/+6
2019-02-10rustc: doc commentsAlexander Regueiro-3/+3
2019-02-08librustc_metadata => 2018Taiki Endo-2/+2
2018-12-25Remove licensesMark Rousskov-10/+0
2018-12-07Various minor/cosmetic improvements to codeAlexander Regueiro-1/+1
2018-10-19Prefer `Default::default` over `FxHash*::default` in struct constructorsOliver Scherer-1/+1
2018-10-19Deprecate the `FxHashMap()` and `FxHashSet()` constructor function hackOliver Scherer-1/+1
2018-09-19Use full name to identify a macro in a `FileName`.Diogo Sousa-0/+5
Before this two macros with same name would be indistinguishable inside a `FileName`. This caused a bug in incremental compilation (see #53097) since two different macros would map out to the same `StableFilemapId`. Fixes #53097.
2018-08-19mv codemap source_mapDonato Sciarra-4/+4
2018-08-19mv filemap source_fileDonato Sciarra-2/+2
2018-08-19mv FileMap SourceFileDonato Sciarra-7/+7
2018-08-03Move unused trait functions to inherent functionsMark Rousskov-0/+5
2018-07-11Deny bare trait objects in in src/librustc_metadataljedrz-2/+2
2018-06-01Make metadata decoding use AllocDecodingState/Session.Michael Woerister-1/+4
2018-05-18Catch an issue missed in rebaseIsaac Whitfield-2/+1
2018-05-18Remove unnecessary impl methods for CrateMetadataIsaac Whitfield-61/+0
2018-05-18Serialize attributes into the CrateRootIsaac Whitfield-9/+28
2018-05-18Remove unnecessary clone call for panic_strategyIsaac Whitfield-1/+1
2018-05-18Attempt to pass CrateMetadata flags on creationIsaac Whitfield-37/+11