Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
707cf47a
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,发现更多精彩内容 >>
提交
707cf47a
编写于
7月 16, 2014
作者:
A
Alex Crichton
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Register new snapshots
上级
5e0a597a
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
17 addition
and
95 deletion
+17
-95
src/librustc_back/lib.rs
src/librustc_back/lib.rs
+0
-2
src/librustc_llvm/lib.rs
src/librustc_llvm/lib.rs
+0
-2
src/libsyntax/ast_util.rs
src/libsyntax/ast_util.rs
+9
-64
src/libsyntax/diagnostics/macros.rs
src/libsyntax/diagnostics/macros.rs
+0
-26
src/libunicode/lib.rs
src/libunicode/lib.rs
+0
-1
src/snapshots.txt
src/snapshots.txt
+8
-0
未找到文件。
src/librustc_back/lib.rs
浏览文件 @
707cf47a
...
...
@@ -21,7 +21,6 @@
//! one that doesn't; the one that doesn't might get decent parallel
//! build speedups.
#![crate_id
=
"rustc_back#0.11.0-pre"
]
#![crate_name
=
"rustc_back"
]
#![experimental]
#![comment
=
"The Rust compiler minimal-dependency dumping-ground"
]
...
...
@@ -33,7 +32,6 @@
html_root_url
=
"http://doc.rust-lang.org/"
)]
#![feature(globs,
phase,
macro_rules)]
#![allow(unused_attribute)]
// NOTE: remove after stage0
#[phase(plugin,
link)]
extern
crate
log
;
...
...
src/librustc_llvm/lib.rs
浏览文件 @
707cf47a
...
...
@@ -13,7 +13,6 @@
#![allow(non_snake_case_functions)]
#![allow(dead_code)]
#![crate_id
=
"rustc_llvm#0.11.0"
]
#![crate_name
=
"rustc_llvm"
]
#![experimental]
#![license
=
"MIT/ASL2"
]
...
...
@@ -25,7 +24,6 @@
#![feature(globs)]
#![feature(link_args)]
#![allow(unused_attribute)]
// NOTE: remove after stage0
extern
crate
libc
;
...
...
src/libsyntax/ast_util.rs
浏览文件 @
707cf47a
...
...
@@ -766,30 +766,6 @@ pub trait PostExpansionMethod {
fn
pe_vis
(
&
self
)
->
ast
::
Visibility
;
}
/// can't use the standard cfg(stage0) tricks here, because the error occurs in
/// parsing, before cfg gets a chance to save the day. (yes, interleaved parsing
/// / expansion / configuring would solve this problem...)
// NOTE: remove after next snapshot
/// to be more specific: after a snapshot, swap out the "PRE" stuff, and
// swap in the "POST" stuff.
/// PRE
macro_rules!
mf_method_body
{
(
$slf:ident
,
$field_pat:pat
,
$result:ident
)
=>
{
match
$slf
.node
{
$field_pat
=>
$result
,
MethMac
(
_
)
=>
{
fail!
(
"expected an AST without macro invocations"
);
}
}
}
}
/// POST
/*
#[cfg(not(stage0))]
macro_rules!
mf_method
{
(
$meth_name:ident
,
$field_ty:ty
,
$field_pat:pat
,
$result:ident
)
=>
{
fn
$meth_name
<
'a
>
(
&
'a
self
)
->
$field_ty
{
...
...
@@ -801,52 +777,21 @@ fn $meth_name<'a>(&'a self) -> $field_ty {
}
}
}
}*/
// PRE
impl
PostExpansionMethod
for
Method
{
fn
pe_ident
(
&
self
)
->
ast
::
Ident
{
mf_method_body!
(
self
,
MethDecl
(
ident
,
_
,
_
,
_
,
_
,
_
,
_
,
_
),
ident
)
}
fn
pe_generics
<
'a
>
(
&
'a
self
)
->
&
'a
ast
::
Generics
{
mf_method_body!
(
self
,
MethDecl
(
_
,
ref
generics
,
_
,
_
,
_
,
_
,
_
,
_
),
generics
)
}
fn
pe_abi
(
&
self
)
->
Abi
{
mf_method_body!
(
self
,
MethDecl
(
_
,
_
,
abi
,
_
,
_
,
_
,
_
,
_
),
abi
)
}
fn
pe_explicit_self
<
'a
>
(
&
'a
self
)
->
&
'a
ast
::
ExplicitSelf
{
mf_method_body!
(
self
,
MethDecl
(
_
,
_
,
_
,
ref
explicit_self
,
_
,
_
,
_
,
_
),
explicit_self
)
}
fn
pe_fn_style
(
&
self
)
->
ast
::
FnStyle
{
mf_method_body!
(
self
,
MethDecl
(
_
,
_
,
_
,
_
,
fn_style
,
_
,
_
,
_
),
fn_style
)
}
fn
pe_fn_decl
(
&
self
)
->
P
<
ast
::
FnDecl
>
{
mf_method_body!
(
self
,
MethDecl
(
_
,
_
,
_
,
_
,
_
,
decl
,
_
,
_
),
decl
)
}
fn
pe_body
(
&
self
)
->
P
<
ast
::
Block
>
{
mf_method_body!
(
self
,
MethDecl
(
_
,
_
,
_
,
_
,
_
,
_
,
body
,
_
),
body
)
}
fn
pe_vis
(
&
self
)
->
ast
::
Visibility
{
mf_method_body!
(
self
,
MethDecl
(
_
,
_
,
_
,
_
,
_
,
_
,
_
,
vis
),
vis
)
}
}
// POST
/*
#[cfg(not(stage0))]
impl
PostExpansionMethod
for
Method
{
mf_method!(pe_ident,ast::Ident,MethDecl(ident,_,_,_,_,_,_),ident)
mf_method!
(
pe_ident
,
ast
::
Ident
,
MethDecl
(
ident
,
_
,
_
,
_
,
_
,
_
,
_
,
_
),
ident
)
mf_method!
(
pe_generics
,
&
'a
ast
::
Generics
,
MethDecl(_,ref generics,_,_,_,_,_),generics)
MethDecl
(
_
,
ref
generics
,
_
,
_
,
_
,
_
,
_
,
_
),
generics
)
mf_method!
(
pe_abi
,
Abi
,
MethDecl
(
_
,
_
,
abi
,
_
,
_
,
_
,
_
,
_
),
abi
)
mf_method!
(
pe_explicit_self
,
&
'a
ast
::
ExplicitSelf
,
MethDecl(_,_,ref explicit_self,_,_,_,_),explicit_self)
mf_method!(pe_fn_style,ast::FnStyle,MethDecl(_,_,_,fn_style,_,_,_),fn_style)
mf_method!(pe_fn_decl,P<ast::FnDecl>,MethDecl(_,_,_,_,decl,_,_),decl)
mf_method!(pe_body,P<ast::Block>,MethDecl(_,_,_,_,_,body,_),body)
mf_method!(pe_vis,ast::Visibility,MethDecl(_,_,_,_,_,_,vis),vis)
MethDecl
(
_
,
_
,
_
,
ref
explicit_self
,
_
,
_
,
_
,
_
),
explicit_self
)
mf_method!
(
pe_fn_style
,
ast
::
FnStyle
,
MethDecl
(
_
,
_
,
_
,
_
,
fn_style
,
_
,
_
,
_
),
fn_style
)
mf_method!
(
pe_fn_decl
,
P
<
ast
::
FnDecl
>
,
MethDecl
(
_
,
_
,
_
,
_
,
_
,
decl
,
_
,
_
),
decl
)
mf_method!
(
pe_body
,
P
<
ast
::
Block
>
,
MethDecl
(
_
,
_
,
_
,
_
,
_
,
_
,
body
,
_
),
body
)
mf_method!
(
pe_vis
,
ast
::
Visibility
,
MethDecl
(
_
,
_
,
_
,
_
,
_
,
_
,
_
,
vis
),
vis
)
}
*/
#[cfg(test)]
mod
test
{
...
...
src/libsyntax/diagnostics/macros.rs
浏览文件 @
707cf47a
...
...
@@ -10,38 +10,12 @@
#![macro_escape]
// NOTE: remove after next snapshot
#[cfg(stage0)]
#[macro_export]
macro_rules!
__
register_diagnostic
(
(
$code:tt
,
$description:tt
)
=>
();
(
$code:tt
)
=>
()
)
#[macro_export]
macro_rules!
register_diagnostic
(
(
$code:tt
,
$description:tt
)
=>
(
__
register_diagnostic!
(
$code
,
$description
));
(
$code:tt
)
=>
(
__
register_diagnostic!
(
$code
))
)
// NOTE: remove after next snapshot
#[cfg(stage0)]
#[macro_export]
macro_rules!
__
build_diagnostic_array
(
(
$name:ident
)
=>
{
pub
static
$name
:
[(
&
'static
str
,
&
'static
str
),
..
0
]
=
[];
}
)
// NOTE: remove after next snapshot
#[cfg(stage0)]
#[macro_export]
macro_rules!
__
diagnostic_used
(
(
$code:ident
)
=>
{
()
}
)
#[macro_export]
macro_rules!
span_err
(
(
$session:expr
,
$span:expr
,
$code:ident
,
$
(
$message:tt
)
*
)
=>
({
...
...
src/libunicode/lib.rs
浏览文件 @
707cf47a
...
...
@@ -29,7 +29,6 @@
html_root_url
=
"http://doc.rust-lang.org/"
,
html_playground_url
=
"http://play.rust-lang.org/"
)]
#![no_std]
#![allow(unused_attribute)]
// NOTE: remove after stage0
extern
crate
core
;
...
...
src/snapshots.txt
浏览文件 @
707cf47a
S 2014-07-17 9fc8394
freebsd-x86_64 5a4b645e2b42ae06224cc679d4a43b3d89be1482
linux-i386 a5e1bb723020ac35173d49600e76b0935e257a6a
linux-x86_64 1a2407df17442d93d1c34c916269a345658045d7
macos-i386 6648fa88e41ad7c0991a085366e36d56005873ca
macos-x86_64 71b2d1dfd0abe1052908dc091e098ed22cf272c6
winnt-i386 c26f0a713c5fadf99cce935f60dce0ea403fb411
S 2014-07-09 8ddd286
freebsd-x86_64 de0c39057f409b69e5ddb888ba3e20b90d63f5db
linux-i386 28bef31f2a017e1998256d0c2b2e0a0c9221451b
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录