Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
50d2e7e0
R
Rust
项目概览
int
/
Rust
大约 1 年 前同步成功
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
Rust
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
50d2e7e0
编写于
7月 05, 2012
作者:
T
Tim Chevalier
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Mostly change TODOs to FIXMEs and annotate them
But, one change in io to implement a TODO suggestion (using a const u8)
上级
b0d4f092
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
23 addition
and
19 deletion
+23
-19
src/cargo/cargo.rs
src/cargo/cargo.rs
+7
-5
src/libcore/extfmt.rs
src/libcore/extfmt.rs
+1
-1
src/libcore/io.rs
src/libcore/io.rs
+3
-3
src/libcore/num.rs
src/libcore/num.rs
+2
-1
src/libstd/ebml.rs
src/libstd/ebml.rs
+9
-8
src/libsyntax/parse/parser.rs
src/libsyntax/parse/parser.rs
+1
-1
未找到文件。
src/cargo/cargo.rs
浏览文件 @
50d2e7e0
...
...
@@ -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
>
)
{
...
...
src/libcore/extfmt.rs
浏览文件 @
50d2e7e0
...
...
@@ -228,7 +228,7 @@ fn parse_type(s: str, i: uint, lim: uint, error: error_fn) ->
{
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"
)
{
...
...
src/libcore/io.rs
浏览文件 @
50d2e7e0
...
...
@@ -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 @@ fn read_byte() -> int {
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
;
...
...
src/libcore/num.rs
浏览文件 @
50d2e7e0
...
...
@@ -11,6 +11,7 @@
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...
}
src/libstd/ebml.rs
浏览文件 @
50d2e7e0
...
...
@@ -32,8 +32,8 @@
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 @@ fn wr_str(s: str) {
}
}
//
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
// e
fficiently e
ncode sizes; this is a fixed point iteration
// Set to true to generate more debugging in EBML serialization.
// Totally lame approach.
...
...
@@ -343,9 +343,10 @@ fn _emit_label(label: str) {
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
)
}
...
...
src/libsyntax/parse/parser.rs
浏览文件 @
50d2e7e0
...
...
@@ -2139,7 +2139,7 @@ fn parse_item_class() -> item_info {
Is it strange for the parser to check this?
*/
none
{
self
.fatal
(
"class with no ctor"
);
self
.fatal
(
"class with no c
onstruc
tor"
);
}
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录