File tree 1 file changed +6
-6
lines changed
compiler/rustc_middle/src/ty
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1046,12 +1046,6 @@ impl<'tcx> TyCtxtAt<'tcx> {
1046
1046
name : Symbol ,
1047
1047
def_kind : DefKind ,
1048
1048
) -> TyCtxtFeed < ' tcx , LocalDefId > {
1049
- // This function modifies `self.definitions` using a side-effect.
1050
- // We need to ensure that these side effects are re-run by the incr. comp. engine.
1051
- // Depending on the forever-red node will tell the graph that the calling query
1052
- // needs to be re-evaluated.
1053
- self . dep_graph . read_index ( DepNodeIndex :: FOREVER_RED_NODE ) ;
1054
-
1055
1049
// The following call has the side effect of modifying the tables inside `definitions`.
1056
1050
// These very tables are relied on by the incr. comp. engine to decode DepNodes and to
1057
1051
// decode the on-disk cache.
@@ -1080,6 +1074,12 @@ impl<'tcx> TyCtxt<'tcx> {
1080
1074
let data = def_kind. def_path_data ( name) ;
1081
1075
let def_id = self . untracked . definitions . write ( ) . create_def ( parent, data) ;
1082
1076
1077
+ // This function modifies `self.definitions` using a side-effect.
1078
+ // We need to ensure that these side effects are re-run by the incr. comp. engine.
1079
+ // Depending on the forever-red node will tell the graph that the calling query
1080
+ // needs to be re-evaluated.
1081
+ self . dep_graph . read_index ( DepNodeIndex :: FOREVER_RED_NODE ) ;
1082
+
1083
1083
let feed = self . feed_local_def_id ( def_id) ;
1084
1084
feed. def_kind ( def_kind) ;
1085
1085
// Unique types created for closures participate in type privacy checking.
You can’t perform that action at this time.
0 commit comments