summary refs log tree commit diff
path: root/src/librustc_incremental
AgeCommit message (Collapse)AuthorLines
2016-06-23Move errors from libsyntax to its own crateJonathan Turner-2/+4
2016-05-31expand `DepNode::TraitSelect` to include type idsNiko Matsakis-54/+54
To handle the general case, we include a vector of def-ids, so that we can account for things like `(Foo, Bar)` which references both `Foo` and `Bar`. This means it is not Copy, so re-jigger some APIs to use borrowing more intelligently.
2016-05-28Rollup merge of #33854 - petrochenkov:prefvis, r=eddybManish Goregaokar-4/+0
Apply visit_path to import prefixes by default Overriding `visit_path` is not enough to visit all paths, some import prefixes are not visited and `visit_path_list_item` need to be overridden as well. This PR removes this catch, it should be less error prone this way. Also, the prefix is visited once now, not repeatedly for each path list item. r? @eddyb
2016-05-24Apply visit_path to import prefixes by defaultVadim Petrochenkov-4/+0
2016-05-24syntax/hir: give loop labels a spanGeorg Brandl-1/+1
This makes the "shadowing labels" warning *not* print the entire loop as a span, but only the lifetime. Also makes #31719 go away, but does not fix its root cause (the span of the expanded loop is still wonky, but not used anymore).
2016-05-18nit: cache crate-hash for next timeNiko Matsakis-0/+5
2016-05-18load/save hashes of metadataNiko Matsakis-92/+249
This commit reorganizes how the persist code treats hashing. The idea is that each crate saves a file containing hashes representing the metadata for each item X. When we see a read from `MetaData(X)`, we can load this hash up (if we don't find a file for that crate, we just use the SVH for the entire crate). To compute the hash for `MetaData(Y)`, where Y is some local item, we examine all the predecessors of the `MetaData(Y)` node and hash their hashes together.
2016-05-18allow retracing paths across cratesNiko Matsakis-1/+1
For external crates, we must build up a map that goes from the DefKey to the DefIndex. We do this by iterating over each index that is found in the metadata and loading the associated DefKey.
2016-05-18cleanup dep-graph debugging codeNiko Matsakis-19/+9
Create some re-usable filtering subroutines.
2016-05-18change svh to store a u64Niko Matsakis-3/+10
We used to store a u64 converted to a String for some reason. Now we don't.
2016-05-18make the filename computation take a cratenumNiko Matsakis-8/+10
2016-05-18identify inputs of `MetaData(X)` nodesNiko Matsakis-69/+191
Generate a second hash file that contains the metadata for an X node.
2016-05-18rename the dep-graph file to include crate identNiko Matsakis-1/+7
This way, multiple compilations can share the same work directory.
2016-05-16Remove hir::IdentVadim Petrochenkov-3/+3
2016-05-14Remove ExplicitSelf from HIRVadim Petrochenkov-5/+0
2016-05-11rustc: Split 'tcx into 'gcx and 'tcx for InferCtxt and its users.Eduard Burtescu-21/+25
2016-05-11rustc: Replace &'a TyCtxt<'tcx> with a TyCtxt<'a, 'tcx> wrapper.Eduard Burtescu-37/+33
2016-05-03Remove unused trait imports flagged by lintSeo Sanghyeon-2/+0
2016-05-02rustc: Handle concurrent `create_dir` requestsAlex Crichton-2/+24
The compiler created a directory as part of `-Z incremental` but that may be hierarchically used concurrently so we need to protect ourselves against that.
2016-04-14Auto merge of #32908 - oli-obk:hygienic_derive_encodable, r=alexcrichtonbors-5/+2
prevent other `encode` methods from breaking `derive(RustcEncodable)` fixes https://github.com/rust-lang-nursery/rustc-serialize/issues/151
2016-04-12rustbuild: Migrate tidy checks to RustAlex Crichton-0/+0
This commit rewrites all of the tidy checks we have, namely: * featureck * errorck * tidy * binaries into Rust under a new `tidy` tool inside of the `src/tools` directory. This at the same time deletes all the corresponding Python tidy checks so we can be sure to only have one source of truth for all the tidy checks. cc #31590
2016-04-12prevent other `encode` methods from breaking `derive(RustcEncodable)`Oliver Schneider-5/+2
2016-04-07argh, overlooked two extern cratesNiko Matsakis-0/+2
2016-04-06remove incorrect dependency on librustc_frontNiko Matsakis-1/+0
2016-04-06rebase over the hir renameNiko Matsakis-11/+11
2016-04-06patch name in incremental's Cargo.tomlNiko Matsakis-2/+2
2016-04-06remove use of rbml and just use opaque encoderNiko Matsakis-41/+16
2016-04-06Fix another call to bug into the macroNiko Matsakis-3/+1
2016-04-06FIXME for lockfileNiko Matsakis-0/+3
2016-04-06add FIXME #32753 markers: SVH vs ICHNiko Matsakis-1/+5
2016-04-06rebase: get `bug!` macroNiko Matsakis-1/+1
2016-04-06add some commentsNiko Matsakis-1/+19
2016-04-06add code to persist graph and for unit-testingNiko Matsakis-0/+726
2016-04-06make an incremental crateNiko Matsakis-0/+916
for now, this houses `svh` and the code to check `assert_dep_graph` is sane