Skip to content

Commit b0f0172

Browse files
committed
Annotate FIXMEs in resolve
And fix one FIXME (use fk_ctor to visit a constructor)
1 parent e0a22fd commit b0f0172

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/rustc/middle/resolve.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ fn resolve_crate(sess: session, amap: ast_map::map, crate: @ast::crate) ->
157157
// don't complain if a pattern uses the same nullary enum twice
158158
check_for_collisions(e, *crate);
159159

160-
// FIXME: move this to the lint pass when rewriting resolve.
160+
// FIXME: move this to the lint pass when rewriting resolve. (#1634)
161161
for sess.opts.lint_opts.each {|pair|
162162
let (lint,level) = pair;
163163
if lint == lint::unused_imports && level != lint::ignore {
@@ -217,7 +217,7 @@ fn iter_effective_import_paths(vi: ast::view_item,
217217
ast::view_path_simple(_, _, _) { }
218218
// FIXME: support uniform ident-list exports eventually;
219219
// at the moment they have half a meaning as reaching into
220-
// tags.
220+
// tags. (but also see #1893)
221221
ast::view_path_list(_, _, _) {}
222222
ast::view_path_glob(_,_) {
223223
f(vp);
@@ -580,8 +580,8 @@ fn visit_item_with_scope(e: @env, i: @ast::item,
580580
for ifaces.each {|p|
581581
visit::visit_path(p.path, class_scope, v);
582582
}
583-
// FIXME: should be fk_ctor?
584-
visit_fn_with_scope(e, visit::fk_item_fn(i.ident, tps), ctor.node.dec,
583+
visit_fn_with_scope(e, visit::fk_ctor(i.ident, tps, ctor.node.self_id,
584+
local_def(i.id)), ctor.node.dec,
585585
ctor.node.body, ctor.span, ctor.node.id,
586586
ctor_scope, v);
587587
option::iter(m_dtor) {|dtor|
@@ -1065,8 +1065,6 @@ fn lookup_in_scope(e: env, &&sc: scopes, sp: span, name: ident, ns: namespace,
10651065
ret some(ast::def_fn(local_def(ctor.node.id),
10661066
ast::impure_fn));
10671067
}
1068-
// FIXME: AST allows other items to appear in a class,
1069-
// but that might not be wise
10701068
}
10711069
_ { }
10721070
}
@@ -1940,7 +1938,7 @@ fn check_exports(e: @env) {
19401938
let defid = def_id_of_def(m);
19411939

19421940
if defid.crate != ast::local_crate {
1943-
// FIXME: ought to support external export-globs eventually.
1941+
// FIXME: ought to support external export-globs eventually. #2527
19441942
e.sess.span_unimpl(sp, "glob-export of items in external crate");
19451943
} else {
19461944

0 commit comments

Comments
 (0)