summary refs log tree commit diff
path: root/src/librustc_metadata
AgeCommit message (Collapse)AuthorLines
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-18Auto merge of #51414 - oli-obk:impl_trait_type_def, r=pnkfelixbors-26/+8
Add existential type definitions Note: this does not allow creating named existential types, it just desugars `impl Trait` to a less (but still very) hacky version of actual `existential type` items. r? @nikomatsakis
2018-06-14rustc: rename ty::maps to ty::query.Eduard-Mihai Burtescu-2/+2
2018-06-07Add existential type definitonsOliver Schneider-26/+8
2018-06-03Remove is_import fieldMark Simulacrum-6/+3
2018-06-01Update recursion limitsJohn Kåre Alsaker-0/+2
2018-06-01Make metadata decoding use AllocDecodingState/Session.Michael Woerister-35/+19
2018-05-26Use `Ident`s for fields in HIRVadim Petrochenkov-1/+1
2018-05-23Auto merge of #50528 - whitfin:issue-50508, r=michaelwoeristerbors-143/+72
Remove attribute_cache from CrateMetadata This PR will fix #50508 by removing the `attribute_cache` from the `CrateMetadata` struct. Seeing as performance was referenced in the original issue, I also cleaned up a `self.entry(node_id);` call which might have occasionally happened redundantly. r? @michaelwoerister
2018-05-19rustc: introduce {ast,hir}::AnonConst to consolidate so-called "embedded ↵Eduard-Mihai Burtescu-8/+8
constants".
2018-05-18Catch an issue missed in rebaseIsaac Whitfield-3/+2
2018-05-18Remove unnecessary impl methods for CrateMetadataIsaac Whitfield-97/+36
2018-05-18Serialize attributes into the CrateRootIsaac Whitfield-54/+66
2018-05-18Remove unnecessary clone call for panic_strategyIsaac Whitfield-1/+1
2018-05-18Avoid removing from cstore_impl for nowIsaac Whitfield-0/+5
2018-05-18Attempt to pass CrateMetadata flags on creationIsaac Whitfield-60/+39
2018-05-18Avoid generating attributes more than once for CrateMetadataIsaac Whitfield-40/+49
2018-05-18Remove attribute_cache from CrateMetadataIsaac Whitfield-22/+8
2018-05-17Pass crate editions to macro expansions, update testsVadim Petrochenkov-10/+17
2018-05-17Keep crate edition in metadataVadim Petrochenkov-1/+15
2018-05-17Rename trans to codegen everywhere.Irina Popa-7/+8
2018-05-15Rename `has_type_parameters` to `requires_monomorphization`varkor-1/+1
2018-05-15Reduce parent_params to parent_countvarkor-4/+3
2018-05-15Consolidate ty::Genericsvarkor-1/+1
2018-05-13restore feature for stage0Alex Burka-0/+1
2018-05-13stabilize :lifetimeAlex Burka-2/+0
2018-05-10Rollup merge of #50538 - michaelwoerister:atomic-cnums, r=ZoxcAlex Crichton-23/+24
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-09Add comment about first element in CStore::metas.Michael Woerister-0/+4
2018-05-09Make CrateNum allocation more thread-safe.Michael Woerister-15/+10
2018-05-09Adapt some method visibilities in librustc_metadata::cstore.Michael Woerister-9/+11
2018-05-08Don't use Lock for heavily accessed CrateMetadata::cnum_map.Michael Woerister-8/+12
2018-04-29Auto merge of #50271 - sinkuu:fix_ice, r=eddybbors-1/+7
Fix ICE #48984 * ~~fbf6423 The tail type was not normalized.~~ * https://github.com/rust-lang/rust/commit/d0839d5680d2a51785eeb0811cf3e2beba90eacb The method had a wrong assumption that something whose parent is a trait is an associated item. Fixes #48984.
2018-04-28Make `trait_of_item` return None for non associated itemsShotaro Yamada-1/+7
It have returned `Some` for constants in a trait definition, and `Instance::resolve` called `tcx.associated_item` for them, causing ICE.
2018-04-27Auto merge of #50102 - Zoxc:query-nomacro, r=michaelwoeristerbors-1/+1
Move query code outside macros and store query jobs separately from query results Based on https://github.com/rust-lang/rust/pull/50067 r? @michaelwoerister
2018-04-27Create a job immediately when looking in the query map and start it laterJohn Kåre Alsaker-1/+1
2018-04-27Rename InternedString to LocalInternedString and introduce a new thread-safe ↵John Kåre Alsaker-9/+9
InternedString
2018-04-26rustc_target: move in syntax::abi and flip dependency.Irina Popa-2/+2
2018-04-26Rename rustc_back::target to rustc_target::spec.Irina Popa-8/+6
2018-04-26rustc_back: move LinkerFlavor, PanicStrategy, and RelroLevel to target.Irina Popa-3/+3
2018-04-24Hash EntryKind::AssociatedConst const dataWesley Wiser-1/+2
Related to #49991
2018-04-20Clean up `IsolatedEncoder::encode_info_for_impl_item()` a bitWesley Wiser-12/+13
2018-04-20Fix bad merge in #49991Wesley Wiser-1/+1
When I rebased #49991 on `master`, I messed up the merge for this line. I'm reverting this back to the way it was in f15e5c1.
2018-04-19Remove HIR inliningWesley Wiser-217/+108
Fixes #49690
2018-04-16Auto merge of #49433 - varkor:metadata-skip-mir-opt, r=michaelwoeristerbors-2/+9
Skip MIR encoding for cargo check Resolves #48662. r? @michaelwoerister
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-14Get rid of redundant `HashSet`Oliver Schneider-13/+12
2018-04-14Reduce the number of calls to `cdata`Oliver Schneider-2/+2
2018-04-14Encode items before encoding the list of AllocIdsOliver Schneider-10/+13
2018-04-14Use `LazySeq` instead of `Vec`Oliver Schneider-23/+40
2018-04-14Don't recurse into allocations, use a global table insteadOliver Schneider-53/+65