diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-07-05 15:58:25 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-07-05 16:10:29 -0700 |
| commit | 889be71cb4d4252073f2dbdedb71e8ea1645f6e3 (patch) | |
| tree | f1ec5573b95225ba92358ee9b9832c50995f8f44 /src/libstd | |
| parent | 50d2e7e07e79f3f055832756469eb974fe719de1 (diff) | |
| download | rust-889be71cb4d4252073f2dbdedb71e8ea1645f6e3.tar.gz rust-889be71cb4d4252073f2dbdedb71e8ea1645f6e3.zip | |
Comments only: change TODOs to FIXMEs and annotate them
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/rope.rs | 8 | ||||
| -rw-r--r-- | src/libstd/term.rs | 2 | ||||
| -rw-r--r-- | src/libstd/treemap.rs | 2 |
3 files changed, 7 insertions, 5 deletions
diff --git a/src/libstd/rope.rs b/src/libstd/rope.rs index 1a90612869b..187640a54cf 100644 --- a/src/libstd/rope.rs +++ b/src/libstd/rope.rs @@ -588,7 +588,8 @@ mod node { * Used for rebalancing and to allocate stacks for traversals. */ type concat = { - left: @node,//TODO: Perhaps a `vec` instead of `left`/`right` + //FIXME (#2744): Perhaps a `vec` instead of `left`/`right` + left: @node, right: @node, char_len: uint, byte_len: uint, @@ -732,7 +733,8 @@ mod node { } pure fn byte_len(node: @node) -> uint { - alt(*node) {//TODO: Could we do this without the pattern-matching? + //FIXME (#2744): Could we do this without the pattern-matching? + alt(*node) { leaf(y) { ret y.byte_len; } concat(y){ ret y.byte_len; } } @@ -805,7 +807,7 @@ mod node { alt(leaf_iterator::next(it)) { option::none { break; } option::some(x) { - //TODO: Replace with memcpy or something similar + //FIXME (#2744): Replace with memcpy or something similar let mut local_buf: ~[u8] = unsafe::reinterpret_cast(*x.content); let mut i = x.byte_offset; diff --git a/src/libstd/term.rs b/src/libstd/term.rs index fb134e85295..c76417bce08 100644 --- a/src/libstd/term.rs +++ b/src/libstd/term.rs @@ -2,7 +2,7 @@ import core::option; -// TODO: Windows support. +// FIXME (#2807): Windows support. const color_black: u8 = 0u8; const color_red: u8 = 1u8; diff --git a/src/libstd/treemap.rs b/src/libstd/treemap.rs index 1fde1c4fd6a..1a3626e4660 100644 --- a/src/libstd/treemap.rs +++ b/src/libstd/treemap.rs @@ -55,7 +55,7 @@ fn find<K: copy, V: copy>(m: &const tree_edge<K, V>, k: K) -> option<V> { alt copy *m { none { none } - // TODO: was that an optimization? + // FIXME (#2808): was that an optimization? some(node) { if k == node.key { some(node.value) |
