about summary refs log tree commit diff
path: root/src/librustc_metadata
AgeCommit message (Collapse)AuthorLines
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
2018-04-13Move `path_len` to ExternCrateShotaro Yamada-12/+8
2018-04-12Auto merge of #49558 - Zoxc:sync-misc, r=michaelwoeristerbors-4/+12
Even more thread-safety changes r? @michaelwoerister
2018-04-11Rollup merge of #49525 - varkor:sort_by_cached_key-conversion, r=scottmcmkennytm-2/+3
Use sort_by_cached_key where appropriate A follow-up to https://github.com/rust-lang/rust/pull/48639, converting various slice sorting calls to `sort_by_cached_key` when the key functions are more expensive.
2018-04-11Auto merge of #49715 - Mark-Simulacrum:deny-warnings, r=alexcrichtonbors-1/+0
Move deny(warnings) into rustbuild This permits easier iteration without having to worry about warnings being denied. Fixes #49517
2018-04-11Extend `ExternCrate` to cover externs inferred from `use` or pathsShotaro Yamada-13/+79
2018-04-10Auto merge of #49386 - GuillaumeGomez:fix-path-attribute, r=eddybbors-4/+7
Add tcx in item_body_nested_bodies Fixes #47391. r? @eddyb
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-4/+2
2018-04-09Take OutputType::DepInfo into account for metadata_output_onlyvarkor-3/+2
2018-04-09Convert sort_unstable_by_key to sort_by_cached_keyvarkor-2/+3
2018-04-08Move deny(warnings) into rustbuildMark Simulacrum-1/+0
This permits easier iteration without having to worry about warnings being denied. Fixes #49517
2018-04-07Auto merge of #49661 - alexcrichton:bump-bootstrap, r=nikomatsakisbors-2/+0
Bump the bootstrap compiler to 1.26.0 beta Holy cow that's a lot of `cfg(stage0)` removed and a lot of new stable language features!
2018-04-06Allow for re-using monomorphizations from upstream crates.Michael Woerister-2/+2
2018-04-06Allow for representing exported monomorphizations in crate metadata.Michael Woerister-12/+23
2018-04-05Bump the bootstrap compiler to 1.26.0 betaAlex Crichton-2/+0
Holy cow that's a lot of `cfg(stage0)` removed and a lot of new stable language features!
2018-04-04Add len() method to OutputTypesvarkor-1/+1
2018-03-28Take the original extra-filename passed to a crate into account whenChris Manchester-14/+48
resolving it as a dependency. Fixes #46816
2018-03-28Auto merge of #49019 - phil-opp:target-spec, r=pnkfelixbors-11/+14
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-27Skip MIR optimisation for cargo checkvarkor-3/+11
2018-03-26Auto merge of #49101 - mark-i-m:stabilize_i128, r=nagisabors-1/+1
Stabilize 128-bit integers :tada: cc #35118 EDIT: This should be merged only after the following have been merged: - [x] https://github.com/rust-lang-nursery/compiler-builtins/pull/236 - [x] https://github.com/rust-lang/book/pull/1230
2018-03-26Introduce a TargetTriple enum to support absolute target pathsPhilipp Oppermann-11/+14