summary refs log tree commit diff
path: root/src/librustc_metadata
AgeCommit message (Collapse)AuthorLines
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
2018-03-26Fix path attribute in rustdocGuillaume Gomez-4/+7
2018-03-26Stabilize i128_typeMark Mansi-1/+1
2018-03-26Auto merge of #48346 - emilio:pgo, r=alexcrichtonbors-1/+3
Add basic PGO support. This PR adds two mutually exclusive options for profile usage and generation using LLVM's instruction profile generation (the same as clang uses), `-C pgo-use` and `-C pgo-gen`. See each commit for details.
2018-03-26Stabilize conservative_impl_traitTaylor Cramer-1/+1
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>
2018-03-25Rollup merge of #49299 - SimonSapin:ubiquity, r=nikomatsakiskennytm-13/+0
Stabilize the copy_closures and clone_closures features In addition to the `Fn*` family of traits, closures now implement `Copy` (and similarly `Clone`) if all of the captures do. Tracking issue: https://github.com/rust-lang/rust/issues/44490
2018-03-25Rollup merge of #49273 - michaelwoerister:fix-extern-proc-macro-defkey, r=eddybkennytm-2/+19
Fix DefKey lookup for proc-macro crates. Add a special case for proc-macro crates for `def_key()` in the metadata decoder (like we already have for many other methods in there). In the long run, it would be preferable to get rid of the need for special casing proc-macro crates (see #49271). Fixes https://github.com/rust-lang/rust/issues/48739 (though I wasn't able to come up with a regression test, unfortunately) r? @eddyb
2018-03-23Stabilize the copy_closures and clone_closures featuresSimon Sapin-13/+0
In addition to the `Fn*` family of traits, closures now implement `Copy` (and similarly `Clone`) if all of the captures do.