Skip to content

Commit 3b0d3f2

Browse files
Alex Kitchensmark-i-m
authored andcommitted
Define a Cycle
I wasn't clear on what a Cycle was when reading through the document. Defining it will be helpful for other readers not familiar with it as well.
1 parent 6315267 commit 3b0d3f2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/query.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ let ty = tcx.type_of(some_def_id);
4747

4848
### Cycles between queries
4949

50+
A cycle is when a query becomes stuck in a loop e.g. query A generates query B
51+
which generates query A again.
52+
5053
Currently, cycles during query execution should always result in a
5154
compilation error. Typically, they arise because of illegal programs
5255
that contain cyclic references they shouldn't (though sometimes they

0 commit comments

Comments
 (0)