From 8dc505905831a364d09270f5288781e6770b02e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20=C3=81vila=20de=20Esp=C3=ADndola?= Date: Wed, 16 Mar 2011 11:29:41 -0400 Subject: Update comment to reflect the decision to avoid cycles. --- src/comp/middle/trans.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/comp') diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs index 4fab3454..d0569afc 100644 --- a/src/comp/middle/trans.rs +++ b/src/comp/middle/trans.rs @@ -5508,8 +5508,8 @@ fn collect_items(@crate_ctxt cx, @ast.crate crate) { let fold.ast_fold[@crate_ctxt] fld = fold.new_identity_fold[@crate_ctxt](); - // FIXME: if ty_tag had a pointer directly to the definition instead - // of a def_id, we wouldn't need the second pass. + // FIXME: It might be better to use a worklist for this. An item + // would be added to it if it depends on a not yet seen tag for example. auto fld1 = @rec( update_env_for_item = bind collect_item(_,_), -- cgit v1.2.3