]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #67761 - cjgillot:split_graph, r=Zoxc
authorMazdak Farrokhzad <twingoow@gmail.com>
Mon, 23 Mar 2020 23:49:36 +0000 (00:49 +0100)
committerGitHub <noreply@github.com>
Mon, 23 Mar 2020 23:49:36 +0000 (00:49 +0100)
Move the dep_graph construction to a dedicated crate.

The interface for librustc consists in two traits: `DepKind` and `DepContext`.

The `DepKind` is the main interface. It allows to probe properties of the dependency.
As before, `DepNode` is the pair of a `DepKind` object and a hash fingerprint.

The `DepContext` takes the place of the `TyCtxt`, and handles communication with the query engine.

The use of the `ImplicitCtxt` through `ty::tls` is done through the `DepKind` trait.
This may not be the best choice, but it seemed like the simplest.


Trivial merge