mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-16 00:43:50 +00:00
Mostly change TODOs to FIXMEs and annotate them
But, one change in io to implement a TODO suggestion (using a const u8)
This commit is contained in:
parent
b0d4f09201
commit
50d2e7e07e
@ -743,15 +743,15 @@ fn install_one_crate(c: cargo, path: str, cf: str) {
|
||||
#debug(" bin: %s", ct);
|
||||
install_to_dir(ct, c.bindir);
|
||||
if c.opts.mode == system_mode {
|
||||
// TODO: Put this file in PATH / symlink it so it can be
|
||||
// used as a generic executable
|
||||
// FIXME (#2662): Put this file in PATH / symlink it so it can
|
||||
// be used as a generic executable
|
||||
// `cargo install -G rustray` and `rustray file.obj`
|
||||
}
|
||||
} else {
|
||||
#debug(" lib: %s", ct);
|
||||
install_to_dir(ct, c.libdir);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -788,7 +788,9 @@ fn install_source(c: cargo, path: str) {
|
||||
none { cont; }
|
||||
some(crate) {
|
||||
for crate.deps.each |query| {
|
||||
// TODO: handle cyclic dependencies
|
||||
// FIXME (#1356): handle cyclic dependencies
|
||||
// (n.b. #1356 says "Cyclic dependency is an error
|
||||
// condition")
|
||||
|
||||
let wd_base = c.workdir + path::path_sep();
|
||||
let wd = alt tempfile::mkdtemp(wd_base, "") {
|
||||
@ -797,7 +799,6 @@ fn install_source(c: cargo, path: str) {
|
||||
};
|
||||
|
||||
install_query(c, wd, query);
|
||||
}
|
||||
|
||||
os::change_dir(path);
|
||||
|
||||
@ -808,6 +809,7 @@ fn install_source(c: cargo, path: str) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn install_git(c: cargo, wd: str, url: str, ref: option<str>) {
|
||||
|
@ -228,7 +228,7 @@ mod ct {
|
||||
{ty: ty, next: uint} {
|
||||
if i >= lim { error("missing type in conversion"); }
|
||||
let tstr = str::slice(s, i, i+1u);
|
||||
// TODO: Do we really want two signed types here?
|
||||
// FIXME (#2249): Do we really want two signed types here?
|
||||
// How important is it to be printf compatible?
|
||||
let t =
|
||||
if str::eq(tstr, "b") {
|
||||
|
@ -259,8 +259,7 @@ fn file_reader(path: str) -> result<reader, str> {
|
||||
|
||||
// Byte buffer readers
|
||||
|
||||
// TODO: const u8, but this fails with rustboot.
|
||||
type byte_buf = {buf: ~[u8], mut pos: uint, len: uint};
|
||||
type byte_buf = {buf: ~[const u8], mut pos: uint, len: uint};
|
||||
|
||||
impl of reader for byte_buf {
|
||||
fn read_bytes(len: uint) -> ~[u8] {
|
||||
@ -277,7 +276,8 @@ impl of reader for byte_buf {
|
||||
self.pos += 1u;
|
||||
ret b as int;
|
||||
}
|
||||
fn unread_byte(_byte: int) { #error("TODO: unread_byte"); fail; }
|
||||
// FIXME (#2738): implement this
|
||||
fn unread_byte(_byte: int) { #error("Unimplemented: unread_byte"); fail; }
|
||||
fn eof() -> bool { self.pos == self.len }
|
||||
fn seek(offset: int, whence: seek_style) {
|
||||
let pos = self.pos;
|
||||
|
@ -11,6 +11,7 @@ iface num {
|
||||
fn neg() -> self;
|
||||
|
||||
fn to_int() -> int;
|
||||
fn from_int(n: int) -> self; // TODO: Static functions.
|
||||
fn from_int(n: int) -> self; // FIXME (#2376) Static functions.
|
||||
// n.b. #2376 is for classes, not ifaces, but it could be generalized...
|
||||
}
|
||||
|
||||
|
@ -32,8 +32,8 @@ type ebml_tag = {id: uint, size: uint};
|
||||
|
||||
type ebml_state = {ebml_tag: ebml_tag, tag_pos: uint, data_pos: uint};
|
||||
|
||||
// TODO: When we have module renaming, make "reader" and "writer" separate
|
||||
// modules within this file.
|
||||
// FIXME (#2739): When we have module renaming, make "reader" and "writer"
|
||||
// separate modules within this file.
|
||||
|
||||
// ebml reading
|
||||
type doc = {data: @~[u8], start: uint, end: uint};
|
||||
@ -189,7 +189,7 @@ fn writer(w: io::writer) -> writer {
|
||||
ret {writer: w, mut size_positions: size_positions};
|
||||
}
|
||||
|
||||
// TODO: Provide a function to write the standard ebml header.
|
||||
// FIXME (#2741): Provide a function to write the standard ebml header.
|
||||
impl writer for writer {
|
||||
fn start_tag(tag_id: uint) {
|
||||
#debug["Start tag %u", tag_id];
|
||||
@ -291,8 +291,8 @@ impl writer for writer {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: optionally perform "relaxations" on end_tag to more efficiently
|
||||
// encode sizes; this is a fixed point iteration
|
||||
// FIXME (#2743): optionally perform "relaxations" on end_tag to more
|
||||
// efficiently encode sizes; this is a fixed point iteration
|
||||
|
||||
// Set to true to generate more debugging in EBML serialization.
|
||||
// Totally lame approach.
|
||||
@ -343,9 +343,10 @@ impl serializer of serialization::serializer for ebml::writer {
|
||||
|
||||
fn emit_bool(v: bool) { self.wr_tagged_u8(es_bool as uint, v as u8) }
|
||||
|
||||
fn emit_f64(_v: f64) { fail "TODO"; }
|
||||
fn emit_f32(_v: f32) { fail "TODO"; }
|
||||
fn emit_float(_v: float) { fail "TODO"; }
|
||||
// FIXME (#2742): implement these
|
||||
fn emit_f64(_v: f64) { fail "Unimplemented: serializing an f64"; }
|
||||
fn emit_f32(_v: f32) { fail "Unimplemented: serializing an f32"; }
|
||||
fn emit_float(_v: float) { fail "Unimplemented: serializing a float"; }
|
||||
|
||||
fn emit_str(v: str) { self.wr_tagged_str(es_str as uint, v) }
|
||||
|
||||
|
@ -2139,7 +2139,7 @@ class parser {
|
||||
Is it strange for the parser to check this?
|
||||
*/
|
||||
none {
|
||||
self.fatal("class with no ctor");
|
||||
self.fatal("class with no constructor");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user