Skip to content

Commit 9727008

Browse files
committed
auto merge of #4944 : catamorphism/rust/xxx-to-fixme, r=catamorphism
2 parents 172c29f + 3201c6f commit 9727008

File tree

4 files changed

+19
-41
lines changed

4 files changed

+19
-41
lines changed

src/libcore/rt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ pub unsafe fn rt_fail_borrowed() {
6262
}
6363
}
6464

65-
// XXX: Make these signatures agree with exchange_alloc's signatures
65+
// FIXME #4942: Make these signatures agree with exchange_alloc's signatures
6666
#[rt(exchange_malloc)]
6767
#[lang="exchange_malloc"]
6868
pub unsafe fn rt_exchange_malloc(td: *c_char, size: uintptr_t) -> *c_char {

src/libcore/run.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ pub fn start_program(prog: &str, args: &[~str]) -> Program {
250250
r: ProgRepr,
251251
drop {
252252
unsafe {
253-
// XXX: This is bad.
253+
// FIXME #4943: This is bad.
254254
destroy_repr(cast::transmute(&self.r));
255255
}
256256
}

src/librustc/middle/borrowck/loan.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ pub fn loan(bccx: @BorrowckCtxt,
7373
Err(ref e) => return Err((*e)),
7474
Ok(()) => {}
7575
}
76-
// XXX: Workaround for borrow check bug.
76+
// FIXME #4945: Workaround for borrow check bug.
7777
Ok(copy lc.loans)
7878
}
7979

src/librustc/middle/resolve.rs

Lines changed: 16 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ pub type BindingMap = HashMap<ident,binding_info>;
9696

9797
// Implementation resolution
9898
//
99-
// XXX: This kind of duplicates information kept in ty::method. Maybe it
100-
// should go away.
99+
// FIXME #4946: This kind of duplicates information kept in
100+
// ty::method. Maybe it should go away.
101101

102102
pub type MethodInfo = {
103103
did: def_id,
@@ -268,8 +268,8 @@ pub enum MethodSort {
268268
// allows it to reference private names. Currently, this is used for the test
269269
// runner.
270270
//
271-
// XXX: The X-ray flag is kind of questionable in the first place. It might
272-
// be better to introduce an expr_xray_path instead.
271+
// FIXME #4947: The X-ray flag is kind of questionable in the first
272+
// place. It might be better to introduce an expr_xray_path instead.
273273

274274
#[deriving_eq]
275275
pub enum XrayFlag {
@@ -469,14 +469,6 @@ pub struct Module {
469469
470470
anonymous_children: HashMap<node_id,@Module>,
471471
472-
// XXX: This is about to be reworked so that exports are on individual
473-
// items, not names.
474-
//
475-
// The ident is the name of the exported item, while the node ID is the
476-
// ID of the export path.
477-
478-
exported_names: HashMap<ident,node_id>,
479-
480472
// The status of resolving each import in this module.
481473
import_resolutions: HashMap<ident,@mut ImportResolution>,
482474
@@ -498,7 +490,6 @@ pub fn Module(parent_link: ParentLink,
498490
children: HashMap(),
499491
imports: DVec(),
500492
anonymous_children: HashMap(),
501-
exported_names: HashMap(),
502493
import_resolutions: HashMap(),
503494
glob_count: 0,
504495
resolved_import_count: 0
@@ -831,7 +822,7 @@ pub struct Resolver {
831822
mut current_module: @Module,
832823
833824
// The current set of local scopes, for values.
834-
// XXX: Reuse ribs to avoid allocation.
825+
// FIXME #4948: Reuse ribs to avoid allocation.
835826
value_ribs: @DVec<@Rib>,
836827
837828
// The current set of local scopes, for types.
@@ -2137,8 +2128,9 @@ pub impl Resolver {
21372128

21382129
// We need to resolve both namespaces for this to succeed.
21392130
//
2140-
// XXX: See if there's some way of handling namespaces in a more
2141-
// generic way. We have two of them; it seems worth doing...
2131+
// FIXME #4949: See if there's some way of handling namespaces in
2132+
// a more generic way. We have two of them; it seems worth
2133+
// doing...
21422134

21432135
let mut value_result = UnknownResult;
21442136
let mut type_result = UnknownResult;
@@ -3206,8 +3198,8 @@ pub impl Resolver {
32063198
// This pass simply determines what all "export" keywords refer to and
32073199
// writes the results into the export map.
32083200
//
3209-
// XXX: This pass will be removed once exports change to per-item. Then
3210-
// this operation can simply be performed as part of item (or import)
3201+
// FIXME #4953 This pass will be removed once exports change to per-item.
3202+
// Then this operation can simply be performed as part of item (or import)
32113203
// processing.
32123204

32133205
fn record_exports() {
@@ -3507,8 +3499,8 @@ pub impl Resolver {
35073499
allow_capturing_self: AllowCapturingSelfFlag)
35083500
-> Option<def_like> {
35093501

3510-
// XXX: This should not use a while loop.
3511-
// XXX: Try caching?
3502+
// FIXME #4950: This should not use a while loop.
3503+
// FIXME #4950: Try caching?
35123504

35133505
let mut i = (*ribs).len();
35143506
while i != 0 {
@@ -3649,7 +3641,7 @@ pub impl Resolver {
36493641
// Create a new rib for the method-specific type
36503642
// parameters.
36513643
//
3652-
// XXX: Do we need a node ID here?
3644+
// FIXME #4951: Do we need a node ID here?
36533645

36543646
match *method {
36553647
required(ref ty_m) => {
@@ -4555,7 +4547,7 @@ pub impl Resolver {
45554547
namespace);
45564548
}
45574549
4558-
// XXX: Merge me with resolve_name_in_module?
4550+
// FIXME #4952: Merge me with resolve_name_in_module?
45594551
fn resolve_definition_of_name_in_module(containing_module: @Module,
45604552
name: ident,
45614553
namespace: Namespace,
@@ -4873,20 +4865,6 @@ pub impl Resolver {
48734865

48744866
expr_struct(path, _, _) => {
48754867
// Resolve the path to the structure it goes to.
4876-
//
4877-
// XXX: We might want to support explicit type parameters in
4878-
// the path, in which case this gets a little more
4879-
// complicated:
4880-
//
4881-
// 1. Should we go through the ast_path_to_ty() path, which
4882-
// handles typedefs and the like?
4883-
//
4884-
// 2. If so, should programmers be able to write this?
4885-
//
4886-
// class Foo<A> { ... }
4887-
// type Bar<A> = Foo<A>;
4888-
// let bar = Bar { ... } // no type parameters
4889-
48904868
match self.resolve_path(path, TypeNS, false, visitor) {
48914869
Some(def_ty(class_id)) | Some(def_struct(class_id))
48924870
if self.structs.contains_key(&class_id) => {
@@ -5320,7 +5298,7 @@ pub impl Resolver {
53205298
None => { value_repr = ~""; }
53215299
Some(_) => {
53225300
value_repr = ~" value:?";
5323-
// XXX
5301+
// FIXME #4954
53245302
}
53255303
}
53265304

@@ -5329,7 +5307,7 @@ pub impl Resolver {
53295307
None => { type_repr = ~""; }
53305308
Some(_) => {
53315309
type_repr = ~" type:?";
5332-
// XXX
5310+
// FIXME #4954
53335311
}
53345312
}
53355313

0 commit comments

Comments
 (0)