rust/src/librustc_metadata
Alex Crichton 6f431491d0 rustc: Prefer loading crates in the sysroot
This commit is a random stab in the dark to fix the spurious failures on #39518.
The leading theory of the spurious failures on Windows is that the compiler is
loading a path in the `deps` folder, passing it to `link.exe`, and then this is
racing with Cargo itself updating those paths.

This race, however, has a few unique properties:

* It's isolated to just libstd. Most crates are never passed to the linker and
  simultaneously being worked on by Cargo. Cargo's typical execution of the
  dependency graph never hits this problem.
* The crates are already all located in the sysroot in addition to the `deps`
  folder. This means that the compiler actually has two candidates of crates to
  load, and it's just arbitrarily rejecting one.

Together this means that we shouldn't need to fix this problem "in the large"
and we can instead just fix it in this isolated situation (hopefully). To solve
this the compiler's been updated to prefer crates from the sysroot to leave
Cargo's structure to itself.

We'll see if this actually allows the PR to land...
2017-03-09 07:00:13 -08:00
..
astencode.rs rustc: rename TyCtxt's map field to hir. 2017-01-26 13:41:28 +02:00
Cargo.toml Bump version, upgrade bootstrap 2017-02-03 13:25:46 -08:00
creader.rs Implement function-like procedural macros ( #[proc_macro]) 2017-02-28 18:34:22 -08:00
cstore.rs rustc: introduce a query system for type information in ty::maps. 2017-02-25 17:07:59 +02:00
cstore_impl.rs Auto merge of #40202 - jseyfried:integrate_tokenstream, r=nrc 2017-03-04 05:44:12 +00:00
decoder.rs rustc_const_eval: demand that the MIR qualify_consts ran on each evaluated body. 2017-02-25 18:35:26 +02:00
diagnostics.rs Fix Markdown list formatting. 2016-12-22 17:35:53 +05:30
encoder.rs Integrate TokenStream. 2017-03-03 02:15:37 +00:00
index.rs Fix unaligned load in librustc_metadata::index. 2017-02-09 03:38:52 -08:00
index_builder.rs rustc: rename TyCtxt's map field to hir. 2017-01-26 13:41:28 +02:00
lib.rs rustc: introduce a query system for type information in ty::maps. 2017-02-25 17:07:59 +02:00
locator.rs rustc: Prefer loading crates in the sysroot 2017-03-09 07:00:13 -08:00
schema.rs rustc_const_eval: demand that the MIR qualify_consts ran on each evaluated body. 2017-02-25 18:35:26 +02:00