]> git.lizzy.rs Git - rust.git/commitdiff
Use a DepNode for the generator signature
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>
Mon, 14 Aug 2017 12:11:35 +0000 (14:11 +0200)
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>
Mon, 14 Aug 2017 12:11:35 +0000 (14:11 +0200)
src/librustc/dep_graph/dep_node.rs
src/librustc/ty/maps.rs

index 5b609f192e1c2b11d351febd6d23b72e3e99c2d6..f4143e9b22e82072672bf4bee6edf734ed58e79c 100644 (file)
@@ -432,6 +432,7 @@ pub fn to_dep_node(self, tcx: TyCtxt, kind: DepKind) -> DepNode {
     [] ImplPolarity(DefId),
     [] ClosureKind(DefId),
     [] FnSignature(DefId),
+    [] GenSignature(DefId),
     [] CoerceUnsizedInfo(DefId),
 
     [] ItemVarianceConstraints(DefId),
index b121c05f244fdd2ae8a53e5515dfb161d3a4c365..ba3cd5ba3910f07c70f5b69ce2d721beadbccbef 100644 (file)
@@ -919,7 +919,7 @@ fn default() -> Self {
 
     /// Records the signature of each generator. The def ID is the ID of the
     /// expression defining the closure.
-    [] generator_sig: TypeckTables(DefId) -> Option<ty::PolyGenSig<'tcx>>,
+    [] generator_sig: GenSignature(DefId) -> Option<ty::PolyGenSig<'tcx>>,
 
     /// Caches CoerceUnsized kinds for impls on custom types.
     [] coerce_unsized_info: CoerceUnsizedInfo(DefId)