summary refs log tree commit diff
path: root/src/librustc_metadata/creader.rs
AgeCommit message (Collapse)AuthorLines
2019-05-18Misc changes to rustc_metadatabjorn3-3/+3
2019-05-13Return a `Symbol` from `name_or_empty` functions.Nicholas Nethercote-2/+1
2019-05-13Remove the equality operation between `Symbol` and strings.Nicholas Nethercote-1/+1
And also the equality between `Path` and strings, because `Path` is made up of `Symbol`s.
2019-05-13Pass a `Symbol` to `check_name`, `emit_feature_err`, and related functions.Nicholas Nethercote-6/+6
2019-05-07choose a more specific LLVM target on OS X when necessaryNathan Froyd-2/+2
This behavior matches clang's behavior, and makes cross-language LTO possible. Fixes #60235.
2019-04-14Refactor structure of ExternEntryAaron Hill-15/+5
2019-04-14Combine 'Extern' and 'ExternPrivate'Aaron Hill-5/+6
2019-04-14Properly parse '--extern-private' with name and pathAaron Hill-4/+22
2019-04-11Clean up handling of -Zpgo-gen commandline option.Michael Woerister-1/+1
2019-03-05Move locate_ctxt backJohn Kåre Alsaker-21/+21
2019-03-05Allow linking to a proc macro on the target in metadata and still use a host ↵John Kåre Alsaker-53/+106
proc macro to execute them
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