Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
947f6ca4
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,发现更多精彩内容 >>
提交
947f6ca4
编写于
1月 27, 2015
作者:
F
Flavio Percoco
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Feature gate macro_reexport. Fixes #20906
上级
c5961ad0
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
18 addition
and
1 deletion
+18
-1
src/libstd/lib.rs
src/libstd/lib.rs
+1
-1
src/libsyntax/feature_gate.rs
src/libsyntax/feature_gate.rs
+7
-0
src/test/auxiliary/macro_reexport_2.rs
src/test/auxiliary/macro_reexport_2.rs
+1
-0
src/test/auxiliary/macro_reexport_2_no_use.rs
src/test/auxiliary/macro_reexport_2_no_use.rs
+1
-0
src/test/compile-fail/macro-reexport-malformed-1.rs
src/test/compile-fail/macro-reexport-malformed-1.rs
+2
-0
src/test/compile-fail/macro-reexport-malformed-2.rs
src/test/compile-fail/macro-reexport-malformed-2.rs
+2
-0
src/test/compile-fail/macro-reexport-malformed-3.rs
src/test/compile-fail/macro-reexport-malformed-3.rs
+2
-0
src/test/compile-fail/macro-reexport-not-locally-visible.rs
src/test/compile-fail/macro-reexport-not-locally-visible.rs
+2
-0
未找到文件。
src/libstd/lib.rs
浏览文件 @
947f6ca4
...
...
@@ -114,7 +114,6 @@
#![feature(old_impl_check)]
#![feature(optin_builtin_traits)]
#![feature(int_uint)]
#![feature(int_uint)]
#![feature(core)]
#![feature(libc)]
#![feature(alloc)]
...
...
@@ -123,6 +122,7 @@
#![feature(rand)]
#![feature(hash)]
#![cfg_attr(test,
feature(test))]
#![feature(macro_reexport)]
// Don't link to std. We are std.
#![no_std]
...
...
src/libsyntax/feature_gate.rs
浏览文件 @
947f6ca4
...
...
@@ -109,6 +109,9 @@
// int and uint are now deprecated
(
"int_uint"
,
"1.0.0"
,
Active
),
// macro reexport needs more discusion and stabilization
(
"macro_reexport"
,
Active
),
// These are used to test this portion of the compiler, they don't actually
// mean anything
(
"test_accepted_feature"
,
"1.0.0"
,
Accepted
),
...
...
@@ -272,6 +275,10 @@ fn visit_item(&mut self, i: &ast::Item) {
self
.gate_feature
(
"plugin"
,
i
.span
,
"compiler plugins are experimental
\
and possibly buggy"
);
}
else
if
attr
::
contains_name
(
&
i
.attrs
[],
"macro_reexport"
)
{
self
.gate_feature
(
"macro_reexport"
,
i
.span
,
"macros reexports are experimental
\
and possibly buggy"
);
}
}
...
...
src/test/auxiliary/macro_reexport_2.rs
浏览文件 @
947f6ca4
...
...
@@ -9,6 +9,7 @@
// except according to those terms.
#![crate_type
=
"dylib"
]
#![feature(macro_reexport)]
#[macro_reexport(reexported)]
#[macro_use]
#[no_link]
...
...
src/test/auxiliary/macro_reexport_2_no_use.rs
浏览文件 @
947f6ca4
...
...
@@ -9,6 +9,7 @@
// except according to those terms.
#![crate_type
=
"dylib"
]
#![feature(macro_reexport)]
#[macro_reexport(reexported)]
#[no_link]
...
...
src/test/compile-fail/macro-reexport-malformed-1.rs
浏览文件 @
947f6ca4
...
...
@@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(macro_reexport)]
#[macro_reexport]
//~ ERROR bad macro reexport
extern
crate
std
;
...
...
src/test/compile-fail/macro-reexport-malformed-2.rs
浏览文件 @
947f6ca4
...
...
@@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(macro_reexport)]
#[macro_reexport=
"foo"
]
//~ ERROR bad macro reexport
extern
crate
std
;
...
...
src/test/compile-fail/macro-reexport-malformed-3.rs
浏览文件 @
947f6ca4
...
...
@@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(macro_reexport)]
#[macro_reexport(foo=
"bar"
)]
//~ ERROR bad macro reexport
extern
crate
std
;
...
...
src/test/compile-fail/macro-reexport-not-locally-visible.rs
浏览文件 @
947f6ca4
...
...
@@ -11,6 +11,8 @@
// aux-build:macro_reexport_1.rs
// ignore-stage1
#![feature(macro_reexport)]
#[macro_reexport(reexported)]
#[no_link]
extern
crate
macro_reexport_1
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录