summary refs log tree commit diff
path: root/src/librustc_metadata/creader.rs
AgeCommit message (Collapse)AuthorLines
2019-02-12Auto merge of #58341 - alexreg:cosmetic-2-doc-comments, r=steveklabnikbors-1/+1
Cosmetic improvements to doc comments This has been factored out from https://github.com/rust-lang/rust/pull/58036 to only include changes to documentation comments (throughout the rustc codebase). r? @steveklabnik Once you're happy with this, maybe we could get it through with r=1, so it doesn't constantly get invalidated? (I'm not sure this will be an issue, but just in case...) Anyway, thanks for your advice so far!
2019-02-11Use `Rc<[Symbol]>` instead of `Vec<Symbol>` to reduce # of allocsOliver Scherer-1/+1
2019-02-11Require a list of features to allow in `allow_internal_unstable`Oliver Scherer-1/+1
2019-02-10rustc: doc commentsAlexander Regueiro-1/+1
2019-02-08librustc_metadata => 2018Taiki Endo-9/+10
2018-12-25Remove licensesMark Rousskov-10/+0
2018-11-30proc_macro: introduce a "bridge" between clients (proc macros) and servers ↵Eduard-Mihai Burtescu-50/+36
(compiler front-ends).
2018-11-11std: Delete the `alloc_system` crateAlex Crichton-14/+9
This commit deletes the `alloc_system` crate from the standard distribution. This unstable crate is no longer needed in the modern stable global allocator world, but rather its functionality is folded directly into the standard library. The standard library was already the only stable location to access this crate, and as a result this should not affect any stable code.
2018-11-11rustc: Clean up allocator injection logicAlex Crichton-96/+17
This commit cleans up allocator injection logic found in the compiler around selecting the global allocator. It turns out that now that jemalloc is gone the compiler never actually injects anything! This means that basically everything around loading crates here and there can be easily pruned. This also removes the `exe_allocation_crate` option from custom target specs as it's no longer used by the compiler anywhere.
2018-11-03Remove rustc_metadata_utils, which contains only one functionbjorn3-3/+1
2018-10-19Deprecate the `FxHashMap()` and `FxHashSet()` constructor function hackOliver Scherer-3/+3
2018-09-19Use full name to identify a macro in a `FileName`.Diogo Sousa-0/+1
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-09-15rustc_resolve: always include core, std and meta in the extern prelude.Eduard-Mihai Burtescu-20/+61
2018-09-15rustc: add unstable support for --extern crate_name without a path.Eduard-Mihai Burtescu-1/+2
2018-08-26create a valid DefIdTable for proc macro cratesAriel Ben-Yehuda-4/+11
At least the incremental compilation code, and a few other places in the compiler, require the CrateMetadata for a loaded target crate to contain a valid DefIdTable for the DefIds in the target. Previously, the CrateMetadata for a proc macro contained the crate's "host" DefIdTable, which is of course incompatible with the "target" DefIdTable, causing ICEs. This creates a DefIdTable that properly refers to the "proc macro" DefIds. Fixes #49482.
2018-08-19mv codemap source_mapDonato Sciarra-1/+1
2018-08-14rustc_resolve: fix special-case for one-segment import paths.Eduard-Mihai Burtescu-28/+0
2018-08-09Move SVH structure to data structuresMark Rousskov-1/+1
2018-08-04Normalize variants of CrateType to standard styleMark Rousskov-14/+14
This is a clippy-breaking change.
2018-08-03Store concrete crate stores where possibleMark Rousskov-6/+7
2018-08-03Move validate_crate_name to rustc_metadataMark Rousskov-1/+3
2018-07-28Don't format!() string literalsljedrz-1/+1
2018-07-25rustc: Register crates under their real namesAlex Crichton-4/+3
Whenever we register a crate into the crate store, make sure to use the real name mentioned in the metadata instead of the name mentioned in the `extern crate` statement, as the statement can be wrong! Closes #51796
2018-07-11Deny bare trait objects in in src/librustc_metadataljedrz-2/+2
2018-06-30expansion: Give names to some fields of `SyntaxExtension`Vadim Petrochenkov-3/+5
2018-06-23hygiene: Do not reset expansion info for `quote!`Vadim Petrochenkov-1/+1
2018-06-19Update the error message for a missing global allocatorSimon Sapin-2/+4
Don’t mention `#[default_lib_allocator]` (which is an implementation detail irrelevant to most users) and instead suggest using `#[global_allocator]`, which is often the correct fix.
2018-06-01Make metadata decoding use AllocDecodingState/Session.Michael Woerister-0/+5
2018-05-18Remove unnecessary impl methods for CrateMetadataIsaac Whitfield-23/+23
2018-05-18Serialize attributes into the CrateRootIsaac Whitfield-28/+9
2018-05-18Attempt to pass CrateMetadata flags on creationIsaac Whitfield-18/+28
2018-05-18Avoid generating attributes more than once for CrateMetadataIsaac Whitfield-11/+18
2018-05-18Remove attribute_cache from CrateMetadataIsaac Whitfield-1/+0
2018-05-17Pass crate editions to macro expansions, update testsVadim Petrochenkov-9/+15
2018-05-10Rollup merge of #50538 - michaelwoerister:atomic-cnums, r=ZoxcAlex Crichton-4/+1
Make CrateNum allocation more thread-safe. This PR makes sure that we can't have race conditions when assigning CrateNums. It's a slight improvement but a larger refactoring of the CrateStore/CrateLoader infrastructure would be good, I think. r? @Zoxc
2018-05-09Make CrateNum allocation more thread-safe.Michael Woerister-4/+1
2018-05-08Don't use Lock for heavily accessed CrateMetadata::cnum_map.Michael Woerister-3/+6
2018-04-26Rename rustc_back::target to rustc_target::spec.Irina Popa-2/+1
2018-04-26rustc_back: move LinkerFlavor, PanicStrategy, and RelroLevel to target.Irina Popa-1/+1
2018-04-16Auto merge of #49847 - sinkuu:save_analysis_implicit_extern, r=petrochenkovbors-13/+75
Fix save-analysis generation with extern_in_paths/extern_absolute_paths Fixes #48742.
2018-04-13Move `path_len` to ExternCrateShotaro Yamada-12/+8
2018-04-11Extend `ExternCrate` to cover externs inferred from `use` or pathsShotaro Yamada-13/+79
2018-04-10Make Session.injected_panic_runtime thread-safeJohn Kåre Alsaker-0/+2
2018-04-10Make Session.injected_allocator and Session.allocator_kind thread-safeJohn Kåre Alsaker-0/+8
2018-04-10Make Session.has_global_allocator thread-safeJohn Kåre Alsaker-3/+1
2018-03-28Take the original extra-filename passed to a crate into account whenChris Manchester-7/+15
resolving it as a dependency. Fixes #46816
2018-03-28Auto merge of #49019 - phil-opp:target-spec, r=pnkfelixbors-5/+7
Introduce a TargetTriple enum to support absolute target paths This PR replaces target triple strings with a `TargetTriple` enum, which represents either a target triple or a path to a JSON target file. The path variant is used if the `--target` argument has a `.json` extension, else the target triple variant is used. The motivation of this PR is support for absolute target paths to avoid the need for setting the `RUST_TARGET_PATH` environment variable (see rust-lang/cargo#4905 for more information). For places where some kind of triple is needed (e.g. in the sysroot folder), we use the file name (without extension). For compatibility, we keep the old behavior of searching for a file named `$(target_triple).json` in `RUST_TARGET_PATH` for non-official target triples.
2018-03-26Introduce a TargetTriple enum to support absolute target pathsPhilipp Oppermann-5/+7
2018-03-25librustc: Convert -C pgo-gen and -C pgo-use into -Z flags.Emilio Cobos Álvarez-1/+1
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2018-03-25rustc_metadata: Load the profiler runtime if we're generating PGO profile data.Emilio Cobos Álvarez-1/+3
This contains all the actual profiling code. Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>