Skip to content

Commit 8dc5059

Browse files
committed
Update comment to reflect the decision to avoid cycles.
1 parent 1d8b0e8 commit 8dc5059

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/comp/middle/trans.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5508,8 +5508,8 @@ fn collect_items(@crate_ctxt cx, @ast.crate crate) {
55085508
let fold.ast_fold[@crate_ctxt] fld =
55095509
fold.new_identity_fold[@crate_ctxt]();
55105510

5511-
// FIXME: if ty_tag had a pointer directly to the definition instead
5512-
// of a def_id, we wouldn't need the second pass.
5511+
// FIXME: It might be better to use a worklist for this. An item
5512+
// would be added to it if it depends on a not yet seen tag for example.
55135513

55145514
auto fld1 =
55155515
@rec( update_env_for_item = bind collect_item(_,_),

0 commit comments

Comments
 (0)