Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
46aaf512
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,发现更多精彩内容 >>
提交
46aaf512
编写于
9月 26, 2013
作者:
A
Alex Crichton
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Register new snapshots
上级
1434b4bf
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
8 addition
and
50 deletion
+8
-50
src/libstd/logging.rs
src/libstd/logging.rs
+0
-9
src/libstd/rt/crate_map.rs
src/libstd/rt/crate_map.rs
+0
-12
src/libstd/sys.rs
src/libstd/sys.rs
+0
-29
src/snapshots.txt
src/snapshots.txt
+8
-0
未找到文件。
src/libstd/logging.rs
浏览文件 @
46aaf512
...
...
@@ -37,16 +37,7 @@ pub fn console_off() {
rt
::
logging
::
console_off
();
}
#[cfg(stage0)]
#[doc(hidden)]
pub
fn
log
(
_
level
:
u32
,
s
:
~
str
)
{
// this is a terrible approximation, but it gets the job done (for stage0 at
// least)
::
io
::
println
(
s
);
}
#[allow(missing_doc)]
#[cfg(not(stage0))]
pub
fn
log
(
_
level
:
u32
,
args
:
&
fmt
::
Arguments
)
{
use
rt
::
task
::
Task
;
use
rt
::
local
::
Local
;
...
...
src/libstd/rt/crate_map.rs
浏览文件 @
46aaf512
...
...
@@ -10,7 +10,6 @@
use
libc
::
c_char
;
#[cfg(stage0)]
use
libc
::
c_void
;
use
ptr
;
use
ptr
::
RawPtr
;
use
vec
;
...
...
@@ -40,17 +39,6 @@ struct CrateMapV0 {
children
:
[
*
CrateMap
,
..
1
]
}
#[cfg(stage0)]
struct
CrateMap
{
version
:
i32
,
annihilate_fn
:
*
c_void
,
entries
:
*
ModEntry
,
/// a dynamically sized struct, where all pointers to children are listed adjacent
/// to the struct, terminated with NULL
children
:
[
*
CrateMap
,
..
1
]
}
#[cfg(not(stage0))]
struct
CrateMap
{
version
:
i32
,
entries
:
*
ModEntry
,
...
...
src/libstd/sys.rs
浏览文件 @
46aaf512
...
...
@@ -125,36 +125,7 @@ fn fail_with(cause: &'static str, file: &'static str, line: uint) -> ! {
}
}
// This stage0 version is incredibly wrong.
#[cfg(stage0)]
pub
fn
begin_unwind_
(
msg
:
*
c_char
,
file
:
*
c_char
,
line
:
size_t
)
->
!
{
use
option
::{
Some
,
None
};
use
rt
::
in_green_task_context
;
use
rt
::
task
::
Task
;
use
rt
::
local
::
Local
;
use
rt
::
logging
::
Logger
;
use
str
::
Str
;
unsafe
{
let
msg
=
str
::
raw
::
from_c_str
(
msg
);
let
file
=
str
::
raw
::
from_c_str
(
file
);
if
in_green_task_context
()
{
rterrln!
(
"task failed at '%s', %s:%i"
,
msg
,
file
,
line
as
int
);
}
else
{
rterrln!
(
"failed in non-task context at '%s', %s:%i"
,
msg
,
file
,
line
as
int
);
}
let
task
:
*
mut
Task
=
Local
::
unsafe_borrow
();
if
(
*
task
)
.unwinder.unwinding
{
rtabort!
(
"unwinding again"
);
}
(
*
task
)
.unwinder
.begin_unwind
();
}
}
// FIXME #4427: Temporary until rt::rt_fail_ goes away
#[cfg(not(stage0))]
pub
fn
begin_unwind_
(
msg
:
*
c_char
,
file
:
*
c_char
,
line
:
size_t
)
->
!
{
use
rt
::
in_green_task_context
;
use
rt
::
task
::
Task
;
...
...
src/snapshots.txt
浏览文件 @
46aaf512
S 2013-09-26 1434b4b
freebsd-x86_64 e0493c3b79e71487452dfb2155d6c972ca6c5822
linux-i386 9b38e3773c097656549a109b01589e057abf23a7
linux-x86_64 26c54870b6ea586c37435e319c8861f7f9539c82
macos-i386 ceb98f65e53668cde984160582ab2a47ed909c16
macos-x86_64 834efd21b948971dc0ddacd96972d1a354fdbbc3
winnt-i386 b2be7e7b15c0bfce01812787e69d277c9e5e5803
S 2013-09-23 348d844
freebsd-x86_64 8b99ec197e441f013c5ba0788f8bcfa689bfc75e
linux-i386 9a237fcbe4d29986a360b1dc8984da3b946463e6
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录