diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2017-08-31 12:30:25 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2017-09-05 07:37:58 -0700 |
| commit | bf5550b9b2dfee20f0689a8f2bfcbb9e2cb4168f (patch) | |
| tree | fbc0dc01a6a9508b67eec187e52389f2e0bfa986 /src/librustc/dep_graph/dep_node.rs | |
| parent | 490f34ac0cf6b8c62d835e2f7c55a3f911854a9c (diff) | |
| download | rust-bf5550b9b2dfee20f0689a8f2bfcbb9e2cb4168f.tar.gz rust-bf5550b9b2dfee20f0689a8f2bfcbb9e2cb4168f.zip | |
rustc: Convert `freevars` to a query
This removes a public mutable (but not actually used mutably) field from the `TyCtxt`, moving it over to a query to ensure that it's tracked over time.
Diffstat (limited to 'src/librustc/dep_graph/dep_node.rs')
| -rw-r--r-- | src/librustc/dep_graph/dep_node.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librustc/dep_graph/dep_node.rs b/src/librustc/dep_graph/dep_node.rs index c684440296f..52028ffe0c7 100644 --- a/src/librustc/dep_graph/dep_node.rs +++ b/src/librustc/dep_graph/dep_node.rs @@ -569,6 +569,8 @@ define_dep_nodes!( <'tcx> [] MissingExternCrateItem(CrateNum), [] UsedCrateSource(CrateNum), [] PostorderCnums, + + [] Freevars(HirId), ); trait DepNodeParams<'a, 'gcx: 'tcx + 'a, 'tcx: 'a> : fmt::Debug { |
