Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
c2e26972
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,发现更多精彩内容 >>
提交
c2e26972
编写于
1月 02, 2015
作者:
K
Keegan McAllister
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Un-gate macro_rules
上级
d0163d33
变更
129
展开全部
显示空白变更内容
内联
并排
Showing
129 changed file
with
15 addition
and
260 deletion
+15
-260
src/grammar/verify.rs
src/grammar/verify.rs
+1
-1
src/libcoretest/lib.rs
src/libcoretest/lib.rs
+1
-1
src/libfmt_macros/lib.rs
src/libfmt_macros/lib.rs
+1
-1
src/libsyntax/feature_gate.rs
src/libsyntax/feature_gate.rs
+2
-7
src/libtest/lib.rs
src/libtest/lib.rs
+1
-1
src/test/auxiliary/lint_stability.rs
src/test/auxiliary/lint_stability.rs
+0
-2
src/test/auxiliary/macro_crate_def_only.rs
src/test/auxiliary/macro_crate_def_only.rs
+0
-2
src/test/auxiliary/macro_crate_nonterminal.rs
src/test/auxiliary/macro_crate_nonterminal.rs
+0
-2
src/test/auxiliary/macro_crate_test.rs
src/test/auxiliary/macro_crate_test.rs
+1
-1
src/test/auxiliary/macro_export_inner_module.rs
src/test/auxiliary/macro_export_inner_module.rs
+0
-2
src/test/auxiliary/macro_reexport_1.rs
src/test/auxiliary/macro_reexport_1.rs
+0
-2
src/test/auxiliary/svh-a-base.rs
src/test/auxiliary/svh-a-base.rs
+0
-2
src/test/auxiliary/svh-a-change-lit.rs
src/test/auxiliary/svh-a-change-lit.rs
+0
-2
src/test/auxiliary/svh-a-change-significant-cfg.rs
src/test/auxiliary/svh-a-change-significant-cfg.rs
+0
-2
src/test/auxiliary/svh-a-change-trait-bound.rs
src/test/auxiliary/svh-a-change-trait-bound.rs
+0
-2
src/test/auxiliary/svh-a-change-type-arg.rs
src/test/auxiliary/svh-a-change-type-arg.rs
+0
-2
src/test/auxiliary/svh-a-change-type-ret.rs
src/test/auxiliary/svh-a-change-type-ret.rs
+0
-2
src/test/auxiliary/svh-a-change-type-static.rs
src/test/auxiliary/svh-a-change-type-static.rs
+0
-2
src/test/auxiliary/svh-a-comment.rs
src/test/auxiliary/svh-a-comment.rs
+0
-2
src/test/auxiliary/svh-a-doc.rs
src/test/auxiliary/svh-a-doc.rs
+0
-2
src/test/auxiliary/svh-a-macro.rs
src/test/auxiliary/svh-a-macro.rs
+0
-2
src/test/auxiliary/svh-a-no-change.rs
src/test/auxiliary/svh-a-no-change.rs
+0
-2
src/test/auxiliary/svh-a-redundant-cfg.rs
src/test/auxiliary/svh-a-redundant-cfg.rs
+0
-2
src/test/auxiliary/svh-a-whitespace.rs
src/test/auxiliary/svh-a-whitespace.rs
+0
-2
src/test/auxiliary/two_macros.rs
src/test/auxiliary/two_macros.rs
+0
-2
src/test/bench/core-std.rs
src/test/bench/core-std.rs
+0
-1
src/test/bench/shootout-mandelbrot.rs
src/test/bench/shootout-mandelbrot.rs
+0
-1
src/test/bench/shootout-regex-dna.rs
src/test/bench/shootout-regex-dna.rs
+1
-1
src/test/compile-fail/cleanup-rvalue-scopes-cf.rs
src/test/compile-fail/cleanup-rvalue-scopes-cf.rs
+0
-2
src/test/compile-fail/const-block-non-item-statement.rs
src/test/compile-fail/const-block-non-item-statement.rs
+0
-2
src/test/compile-fail/gated-macro-rules.rs
src/test/compile-fail/gated-macro-rules.rs
+0
-14
src/test/compile-fail/hygienic-label-1.rs
src/test/compile-fail/hygienic-label-1.rs
+0
-2
src/test/compile-fail/hygienic-label-2.rs
src/test/compile-fail/hygienic-label-2.rs
+0
-2
src/test/compile-fail/hygienic-label-3.rs
src/test/compile-fail/hygienic-label-3.rs
+0
-2
src/test/compile-fail/hygienic-label-4.rs
src/test/compile-fail/hygienic-label-4.rs
+0
-2
src/test/compile-fail/if-let.rs
src/test/compile-fail/if-let.rs
+0
-2
src/test/compile-fail/infinite-macro-expansion.rs
src/test/compile-fail/infinite-macro-expansion.rs
+0
-2
src/test/compile-fail/issue-10536.rs
src/test/compile-fail/issue-10536.rs
+0
-2
src/test/compile-fail/issue-15167.rs
src/test/compile-fail/issue-15167.rs
+0
-2
src/test/compile-fail/issue-16098.rs
src/test/compile-fail/issue-16098.rs
+0
-2
src/test/compile-fail/issue-6596.rs
src/test/compile-fail/issue-6596.rs
+0
-2
src/test/compile-fail/lint-unsafe-block.rs
src/test/compile-fail/lint-unsafe-block.rs
+0
-2
src/test/compile-fail/liveness-return-last-stmt-semi.rs
src/test/compile-fail/liveness-return-last-stmt-semi.rs
+0
-2
src/test/compile-fail/macro-incomplete-parse.rs
src/test/compile-fail/macro-incomplete-parse.rs
+0
-2
src/test/compile-fail/macro-inner-attributes.rs
src/test/compile-fail/macro-inner-attributes.rs
+0
-2
src/test/compile-fail/macro-match-nonterminal.rs
src/test/compile-fail/macro-match-nonterminal.rs
+0
-2
src/test/compile-fail/macro-outer-attributes.rs
src/test/compile-fail/macro-outer-attributes.rs
+0
-2
src/test/compile-fail/method-macro-backtrace.rs
src/test/compile-fail/method-macro-backtrace.rs
+0
-2
src/test/compile-fail/pattern-macro-hygiene.rs
src/test/compile-fail/pattern-macro-hygiene.rs
+0
-2
src/test/compile-fail/recursion_limit.rs
src/test/compile-fail/recursion_limit.rs
+0
-1
src/test/compile-fail/svh-change-lit.rs
src/test/compile-fail/svh-change-lit.rs
+0
-2
src/test/compile-fail/svh-change-significant-cfg.rs
src/test/compile-fail/svh-change-significant-cfg.rs
+0
-2
src/test/compile-fail/svh-change-trait-bound.rs
src/test/compile-fail/svh-change-trait-bound.rs
+0
-2
src/test/compile-fail/svh-change-type-arg.rs
src/test/compile-fail/svh-change-type-arg.rs
+0
-2
src/test/compile-fail/svh-change-type-ret.rs
src/test/compile-fail/svh-change-type-ret.rs
+0
-2
src/test/compile-fail/svh-change-type-static.rs
src/test/compile-fail/svh-change-type-static.rs
+0
-2
src/test/compile-fail/trace_macros-format.rs
src/test/compile-fail/trace_macros-format.rs
+1
-1
src/test/compile-fail/while-let.rs
src/test/compile-fail/while-let.rs
+0
-2
src/test/debuginfo/lexical-scope-with-macro.rs
src/test/debuginfo/lexical-scope-with-macro.rs
+0
-1
src/test/run-make/pretty-expanded-hygiene/input.pp.rs
src/test/run-make/pretty-expanded-hygiene/input.pp.rs
+0
-1
src/test/run-make/pretty-expanded-hygiene/input.rs
src/test/run-make/pretty-expanded-hygiene/input.rs
+0
-1
src/test/run-pass/borrowck-macro-interaction-issue-6304.rs
src/test/run-pass/borrowck-macro-interaction-issue-6304.rs
+0
-2
src/test/run-pass/cfg-macros-foo.rs
src/test/run-pass/cfg-macros-foo.rs
+0
-2
src/test/run-pass/cfg-macros-notfoo.rs
src/test/run-pass/cfg-macros-notfoo.rs
+0
-2
src/test/run-pass/cleanup-rvalue-for-scope.rs
src/test/run-pass/cleanup-rvalue-for-scope.rs
+0
-2
src/test/run-pass/cleanup-rvalue-scopes.rs
src/test/run-pass/cleanup-rvalue-scopes.rs
+0
-2
src/test/run-pass/colorful-write-macros.rs
src/test/run-pass/colorful-write-macros.rs
+0
-2
src/test/run-pass/const-binops.rs
src/test/run-pass/const-binops.rs
+0
-2
src/test/run-pass/const-block-item-macro-codegen.rs
src/test/run-pass/const-block-item-macro-codegen.rs
+0
-2
src/test/run-pass/const-block-item.rs
src/test/run-pass/const-block-item.rs
+0
-2
src/test/run-pass/core-run-destroy.rs
src/test/run-pass/core-run-destroy.rs
+0
-1
src/test/run-pass/deriving-in-macro.rs
src/test/run-pass/deriving-in-macro.rs
+0
-2
src/test/run-pass/deriving-show.rs
src/test/run-pass/deriving-show.rs
+0
-2
src/test/run-pass/enum-discrim-width-stuff.rs
src/test/run-pass/enum-discrim-width-stuff.rs
+0
-2
src/test/run-pass/exponential-notation.rs
src/test/run-pass/exponential-notation.rs
+0
-2
src/test/run-pass/html-literals.rs
src/test/run-pass/html-literals.rs
+0
-2
src/test/run-pass/hygienic-labels-in-let.rs
src/test/run-pass/hygienic-labels-in-let.rs
+0
-2
src/test/run-pass/hygienic-labels.rs
src/test/run-pass/hygienic-labels.rs
+0
-2
src/test/run-pass/ifmt.rs
src/test/run-pass/ifmt.rs
+0
-1
src/test/run-pass/intrinsics-math.rs
src/test/run-pass/intrinsics-math.rs
+1
-1
src/test/run-pass/issue-14936.rs
src/test/run-pass/issue-14936.rs
+1
-1
src/test/run-pass/issue-15189.rs
src/test/run-pass/issue-15189.rs
+0
-2
src/test/run-pass/issue-15221.rs
src/test/run-pass/issue-15221.rs
+0
-2
src/test/run-pass/issue-5060.rs
src/test/run-pass/issue-5060.rs
+0
-2
src/test/run-pass/issue-5554.rs
src/test/run-pass/issue-5554.rs
+0
-2
src/test/run-pass/issue-5718.rs
src/test/run-pass/issue-5718.rs
+0
-2
src/test/run-pass/issue-7911.rs
src/test/run-pass/issue-7911.rs
+0
-2
src/test/run-pass/issue-8709.rs
src/test/run-pass/issue-8709.rs
+0
-2
src/test/run-pass/issue-8851.rs
src/test/run-pass/issue-8851.rs
+0
-2
src/test/run-pass/issue-9110.rs
src/test/run-pass/issue-9110.rs
+0
-2
src/test/run-pass/issue-9129.rs
src/test/run-pass/issue-9129.rs
+0
-2
src/test/run-pass/issue-9737.rs
src/test/run-pass/issue-9737.rs
+0
-2
src/test/run-pass/lambda-var-hygiene.rs
src/test/run-pass/lambda-var-hygiene.rs
+0
-2
src/test/run-pass/let-var-hygiene.rs
src/test/run-pass/let-var-hygiene.rs
+0
-2
src/test/run-pass/macro-2.rs
src/test/run-pass/macro-2.rs
+0
-2
src/test/run-pass/macro-attribute-expansion.rs
src/test/run-pass/macro-attribute-expansion.rs
+0
-2
src/test/run-pass/macro-attributes.rs
src/test/run-pass/macro-attributes.rs
+0
-2
src/test/run-pass/macro-block-nonterminal.rs
src/test/run-pass/macro-block-nonterminal.rs
+0
-2
src/test/run-pass/macro-crate-use.rs
src/test/run-pass/macro-crate-use.rs
+0
-2
src/test/run-pass/macro-deep_expansion.rs
src/test/run-pass/macro-deep_expansion.rs
+0
-2
src/test/run-pass/macro-interpolation.rs
src/test/run-pass/macro-interpolation.rs
+0
-2
src/test/run-pass/macro-invocation-in-count-expr-fixed-array-type.rs
...n-pass/macro-invocation-in-count-expr-fixed-array-type.rs
+0
-2
src/test/run-pass/macro-meta-items.rs
src/test/run-pass/macro-meta-items.rs
+0
-2
src/test/run-pass/macro-method-issue-4621.rs
src/test/run-pass/macro-method-issue-4621.rs
+0
-2
src/test/run-pass/macro-multiple-items.rs
src/test/run-pass/macro-multiple-items.rs
+0
-2
src/test/run-pass/macro-nt-list.rs
src/test/run-pass/macro-nt-list.rs
+0
-2
src/test/run-pass/macro-of-higher-order.rs
src/test/run-pass/macro-of-higher-order.rs
+0
-2
src/test/run-pass/macro-pat.rs
src/test/run-pass/macro-pat.rs
+0
-2
src/test/run-pass/macro-path.rs
src/test/run-pass/macro-path.rs
+0
-2
src/test/run-pass/macro-stmt.rs
src/test/run-pass/macro-stmt.rs
+0
-2
src/test/run-pass/macro-with-attrs1.rs
src/test/run-pass/macro-with-attrs1.rs
+0
-2
src/test/run-pass/macro-with-attrs2.rs
src/test/run-pass/macro-with-attrs2.rs
+0
-2
src/test/run-pass/macro-with-braces-in-expr-position.rs
src/test/run-pass/macro-with-braces-in-expr-position.rs
+0
-2
src/test/run-pass/match-in-macro.rs
src/test/run-pass/match-in-macro.rs
+0
-2
src/test/run-pass/match-var-hygiene.rs
src/test/run-pass/match-var-hygiene.rs
+0
-2
src/test/run-pass/non-built-in-quote.rs
src/test/run-pass/non-built-in-quote.rs
+0
-2
src/test/run-pass/nullable-pointer-iotareduction.rs
src/test/run-pass/nullable-pointer-iotareduction.rs
+0
-2
src/test/run-pass/nullable-pointer-size.rs
src/test/run-pass/nullable-pointer-size.rs
+0
-2
src/test/run-pass/small-enums-with-fields.rs
src/test/run-pass/small-enums-with-fields.rs
+0
-2
src/test/run-pass/svh-add-comment.rs
src/test/run-pass/svh-add-comment.rs
+0
-2
src/test/run-pass/svh-add-doc.rs
src/test/run-pass/svh-add-doc.rs
+0
-2
src/test/run-pass/svh-add-macro.rs
src/test/run-pass/svh-add-macro.rs
+0
-2
src/test/run-pass/svh-add-nothing.rs
src/test/run-pass/svh-add-nothing.rs
+0
-2
src/test/run-pass/svh-add-redundant-cfg.rs
src/test/run-pass/svh-add-redundant-cfg.rs
+0
-2
src/test/run-pass/svh-add-whitespace.rs
src/test/run-pass/svh-add-whitespace.rs
+0
-2
src/test/run-pass/syntax-extension-source-utils.rs
src/test/run-pass/syntax-extension-source-utils.rs
+3
-5
src/test/run-pass/tcp-connect-timeouts.rs
src/test/run-pass/tcp-connect-timeouts.rs
+1
-1
src/test/run-pass/typeck-macro-interaction-issue-8852.rs
src/test/run-pass/typeck-macro-interaction-issue-8852.rs
+0
-2
src/test/run-pass/vec-macro-with-brackets.rs
src/test/run-pass/vec-macro-with-brackets.rs
+0
-2
未找到文件。
src/grammar/verify.rs
浏览文件 @
c2e26972
...
...
@@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(globs,
plugin
,
macro_rules
)]
#![feature(globs,
plugin)]
extern
crate
syntax
;
extern
crate
rustc
;
...
...
src/libcoretest/lib.rs
浏览文件 @
c2e26972
...
...
@@ -7,7 +7,7 @@
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(globs,
unsafe_destructor,
macro_rules,
slicing_syntax,
default_type_params)]
#![feature(globs,
unsafe_destructor,
slicing_syntax,
default_type_params)]
#![feature(unboxed_closures)]
extern
crate
core
;
...
...
src/libfmt_macros/lib.rs
浏览文件 @
c2e26972
...
...
@@ -23,7 +23,7 @@
html_root_url
=
"http://doc.rust-lang.org/nightly/"
,
html_playground_url
=
"http://play.rust-lang.org/"
)]
#![feature(
macro_rules,
globs,
slicing_syntax)]
#![feature(globs,
slicing_syntax)]
#![feature(associated_types)]
pub
use
self
::
Piece
::
*
;
...
...
src/libsyntax/feature_gate.rs
浏览文件 @
c2e26972
...
...
@@ -37,7 +37,7 @@
// if you change this list without updating src/doc/reference.md, @cmr will be sad
static
KNOWN_FEATURES
:
&
'static
[(
&
'static
str
,
Status
)]
=
&
[
(
"globs"
,
Active
),
(
"macro_rules"
,
Ac
tive
),
(
"macro_rules"
,
Ac
cepted
),
(
"struct_variant"
,
Accepted
),
(
"asm"
,
Active
),
(
"managed_boxes"
,
Removed
),
...
...
@@ -169,12 +169,7 @@ fn visit_mac(&mut self, mac: &ast::Mac) {
let
ast
::
MacInvocTT
(
ref
path
,
_
,
_
)
=
mac
.node
;
let
id
=
path
.segments
.last
()
.unwrap
()
.identifier
;
if
id
==
token
::
str_to_ident
(
"macro_rules"
)
{
self
.context
.gate_feature
(
"macro_rules"
,
path
.span
,
"macro definitions are
\
not stable enough for use and are subject to change"
);
}
else
if
id
==
token
::
str_to_ident
(
"asm"
)
{
if
id
==
token
::
str_to_ident
(
"asm"
)
{
self
.context
.gate_feature
(
"asm"
,
path
.span
,
"inline assembly is not
\
stable enough for use and is subject to change"
);
}
...
...
src/libtest/lib.rs
浏览文件 @
c2e26972
...
...
@@ -32,7 +32,7 @@
html_root_url
=
"http://doc.rust-lang.org/nightly/"
)]
#![allow(unknown_features)]
#![feature(asm,
macro_rules,
globs,
slicing_syntax)]
#![feature(asm,
globs,
slicing_syntax)]
#![feature(unboxed_closures,
default_type_params)]
#![feature(old_orphan_check)]
...
...
src/test/auxiliary/lint_stability.rs
浏览文件 @
c2e26972
...
...
@@ -10,8 +10,6 @@
#![crate_name=
"lint_stability"
]
#![crate_type
=
"lib"
]
#![feature(macro_rules)]
#[deprecated]
pub
fn
deprecated
()
{}
#[deprecated=
"text"
]
...
...
src/test/auxiliary/macro_crate_def_only.rs
浏览文件 @
c2e26972
...
...
@@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(macro_rules)]
#[macro_export]
macro_rules!
make_a_5
{
()
=>
(
5
)
...
...
src/test/auxiliary/macro_crate_nonterminal.rs
浏览文件 @
c2e26972
...
...
@@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(macro_rules)]
pub
fn
increment
(
x
:
uint
)
->
uint
{
x
+
1
}
...
...
src/test/auxiliary/macro_crate_test.rs
浏览文件 @
c2e26972
...
...
@@ -10,7 +10,7 @@
// force-host
#![feature(globs,
plugin_registrar,
macro_rules,
quote)]
#![feature(globs,
plugin_registrar,
quote)]
extern
crate
syntax
;
extern
crate
rustc
;
...
...
src/test/auxiliary/macro_export_inner_module.rs
浏览文件 @
c2e26972
...
...
@@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(macro_rules)]
pub
mod
inner
{
#[macro_export]
macro_rules!
foo
{
...
...
src/test/auxiliary/macro_reexport_1.rs
浏览文件 @
c2e26972
...
...
@@ -9,8 +9,6 @@
// except according to those terms.
#![crate_type
=
"dylib"
]
#![feature(macro_rules)]
#[macro_export]
macro_rules!
reexported
{
()
=>
(
3u
)
...
...
src/test/auxiliary/svh-a-base.rs
浏览文件 @
c2e26972
...
...
@@ -13,8 +13,6 @@
//! should not affect the strict version hash (SVH) computation
//! (#14132).
#![feature(macro_rules)]
#![crate_name
=
"a"
]
macro_rules!
three
{
...
...
src/test/auxiliary/svh-a-change-lit.rs
浏览文件 @
c2e26972
...
...
@@ -13,8 +13,6 @@
//! should not affect the strict version hash (SVH) computation
//! (#14132).
#![feature(macro_rules)]
#![crate_name
=
"a"
]
macro_rules!
three
{
...
...
src/test/auxiliary/svh-a-change-significant-cfg.rs
浏览文件 @
c2e26972
...
...
@@ -13,8 +13,6 @@
//! should not affect the strict version hash (SVH) computation
//! (#14132).
#![feature(macro_rules)]
#![crate_name
=
"a"
]
macro_rules!
three
{
...
...
src/test/auxiliary/svh-a-change-trait-bound.rs
浏览文件 @
c2e26972
...
...
@@ -13,8 +13,6 @@
//! should not affect the strict version hash (SVH) computation
//! (#14132).
#![feature(macro_rules)]
#![crate_name
=
"a"
]
macro_rules!
three
{
...
...
src/test/auxiliary/svh-a-change-type-arg.rs
浏览文件 @
c2e26972
...
...
@@ -13,8 +13,6 @@
//! should not affect the strict version hash (SVH) computation
//! (#14132).
#![feature(macro_rules)]
#![crate_name
=
"a"
]
macro_rules!
three
{
...
...
src/test/auxiliary/svh-a-change-type-ret.rs
浏览文件 @
c2e26972
...
...
@@ -13,8 +13,6 @@
//! should not affect the strict version hash (SVH) computation
//! (#14132).
#![feature(macro_rules)]
#![crate_name
=
"a"
]
macro_rules!
three
{
...
...
src/test/auxiliary/svh-a-change-type-static.rs
浏览文件 @
c2e26972
...
...
@@ -13,8 +13,6 @@
//! should not affect the strict version hash (SVH) computation
//! (#14132).
#![feature(macro_rules)]
#![crate_name
=
"a"
]
macro_rules!
three
{
...
...
src/test/auxiliary/svh-a-comment.rs
浏览文件 @
c2e26972
...
...
@@ -13,8 +13,6 @@
//! should not affect the strict version hash (SVH) computation
//! (#14132).
#![feature(macro_rules)]
#![crate_name
=
"a"
]
macro_rules!
three
{
...
...
src/test/auxiliary/svh-a-doc.rs
浏览文件 @
c2e26972
...
...
@@ -13,8 +13,6 @@
//! should not affect the strict version hash (SVH) computation
//! (#14132).
#![feature(macro_rules)]
#![crate_name
=
"a"
]
macro_rules!
three
{
...
...
src/test/auxiliary/svh-a-macro.rs
浏览文件 @
c2e26972
...
...
@@ -13,8 +13,6 @@
//! should not affect the strict version hash (SVH) computation
//! (#14132).
#![feature(macro_rules)]
#![crate_name
=
"a"
]
macro_rules!
three
{
...
...
src/test/auxiliary/svh-a-no-change.rs
浏览文件 @
c2e26972
...
...
@@ -13,8 +13,6 @@
//! should not affect the strict version hash (SVH) computation
//! (#14132).
#![feature(macro_rules)]
#![crate_name
=
"a"
]
macro_rules!
three
{
...
...
src/test/auxiliary/svh-a-redundant-cfg.rs
浏览文件 @
c2e26972
...
...
@@ -13,8 +13,6 @@
//! should not affect the strict version hash (SVH) computation
//! (#14132).
#![feature(macro_rules)]
#![crate_name
=
"a"
]
macro_rules!
three
{
...
...
src/test/auxiliary/svh-a-whitespace.rs
浏览文件 @
c2e26972
...
...
@@ -13,8 +13,6 @@
//! should not affect the strict version hash (SVH) computation
//! (#14132).
#![feature(macro_rules)]
#![crate_name
=
"a"
]
macro_rules!
three
{
...
...
src/test/auxiliary/two_macros.rs
浏览文件 @
c2e26972
...
...
@@ -10,8 +10,6 @@
// force-host
#![feature(macro_rules)]
#[macro_export]
macro_rules!
macro_one
{
()
=>
(
"one"
)
}
...
...
src/test/bench/core-std.rs
浏览文件 @
c2e26972
...
...
@@ -11,7 +11,6 @@
// ignore-lexer-test FIXME #15679
// Microbenchmarks for various functions in std and extra
#![feature(macro_rules)]
#![feature(unboxed_closures)]
use
std
::
io
::
File
;
...
...
src/test/bench/shootout-mandelbrot.rs
浏览文件 @
c2e26972
...
...
@@ -38,7 +38,6 @@
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
// OF THE POSSIBILITY OF SUCH DAMAGE.
#![feature(macro_rules)]
#![feature(simd)]
#![allow(experimental)]
...
...
src/test/bench/shootout-regex-dna.rs
浏览文件 @
c2e26972
...
...
@@ -41,7 +41,7 @@
// ignore-stage1
// ignore-cross-compile #12102
#![feature(
macro_rules,
plugin,
slicing_syntax)]
#![feature(plugin,
slicing_syntax)]
extern
crate
regex
;
...
...
src/test/compile-fail/cleanup-rvalue-scopes-cf.rs
浏览文件 @
c2e26972
...
...
@@ -11,8 +11,6 @@
// Test that the borrow checker prevents pointers to temporaries
// with statement lifetimes from escaping.
#![feature(macro_rules)]
use
std
::
ops
::
Drop
;
static
mut
FLAGS
:
u64
=
0
;
...
...
src/test/compile-fail/const-block-non-item-statement.rs
浏览文件 @
c2e26972
...
...
@@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(macro_rules)]
static
A
:
uint
=
{
1u
;
2
};
//~^ ERROR: blocks in constants are limited to items and tail expressions
...
...
src/test/compile-fail/gated-macro-rules.rs
已删除
100644 → 0
浏览文件 @
d0163d33
// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
macro_rules!
foo
{
()
=>
()
}
//~^ ERROR: macro definitions are not stable enough for use
fn
main
()
{}
src/test/compile-fail/hygienic-label-1.rs
浏览文件 @
c2e26972
...
...
@@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(macro_rules)]
macro_rules!
foo
{
()
=>
{
break
'x
;
}
}
...
...
src/test/compile-fail/hygienic-label-2.rs
浏览文件 @
c2e26972
...
...
@@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(macro_rules)]
macro_rules!
foo
{
(
$e
:
expr
)
=>
{
'x
:
loop
{
$e
}
}
}
...
...
src/test/compile-fail/hygienic-label-3.rs
浏览文件 @
c2e26972
...
...
@@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(macro_rules)]
macro_rules!
foo
{
()
=>
{
break
'x
;
}
}
...
...
src/test/compile-fail/hygienic-label-4.rs
浏览文件 @
c2e26972
...
...
@@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(macro_rules)]
macro_rules!
foo
{
(
$e
:
expr
)
=>
{
'x
:
for
_
in
range
(
0
,
1
)
{
$e
}
}
}
...
...
src/test/compile-fail/if-let.rs
浏览文件 @
c2e26972
...
...
@@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(macro_rules)]
fn
macros
()
{
macro_rules!
foo
{
(
$p:pat
,
$e:expr
,
$b:block
)
=>
{{
...
...
src/test/compile-fail/infinite-macro-expansion.rs
浏览文件 @
c2e26972
...
...
@@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(macro_rules)]
macro_rules!
recursive
{
()
=>
(
recursive!
())
//~ ERROR recursion limit reached while expanding the macro `recursive`
}
...
...
src/test/compile-fail/issue-10536.rs
浏览文件 @
c2e26972
...
...
@@ -13,8 +13,6 @@
// error-pattern:
#![feature(macro_rules)]
macro_rules!
foo
{
()
=>
{{
macro_rules!
bar
{()
=>
(())}
...
...
src/test/compile-fail/issue-15167.rs
浏览文件 @
c2e26972
...
...
@@ -15,8 +15,6 @@
// ignore-test
#![feature(macro_rules)]
macro_rules!
f
{
()
=>
(
n
)
}
fn
main
()
->
(){
...
...
src/test/compile-fail/issue-16098.rs
浏览文件 @
c2e26972
...
...
@@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(macro_rules)]
macro_rules!
prob1
{
(
0
)
=>
{
0
...
...
src/test/compile-fail/issue-6596.rs
浏览文件 @
c2e26972
...
...
@@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(macro_rules)]
// error-pattern: unexpected token
macro_rules!
e
{
...
...
src/test/compile-fail/lint-unsafe-block.rs
浏览文件 @
c2e26972
...
...
@@ -11,8 +11,6 @@
#![allow(unused_unsafe)]
#![allow(dead_code)]
#![deny(unsafe_blocks)]
#![feature(macro_rules)]
unsafe
fn
allowed
()
{}
#[allow(unsafe_blocks)]
fn
also_allowed
()
{
unsafe
{}
}
...
...
src/test/compile-fail/liveness-return-last-stmt-semi.rs
浏览文件 @
c2e26972
...
...
@@ -10,8 +10,6 @@
//
// regression test for #8005
#![feature(macro_rules)]
macro_rules!
test
{
()
=>
{
fn
foo
()
->
int
{
1
i
;
}
}
}
//~^ ERROR not all control paths return a value
//~^^ HELP consider removing this semicolon
...
...
src/test/compile-fail/macro-incomplete-parse.rs
浏览文件 @
c2e26972
...
...
@@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(macro_rules)]
macro_rules!
ignored_item
{
()
=>
{
fn
foo
()
{}
...
...
src/test/compile-fail/macro-inner-attributes.rs
浏览文件 @
c2e26972
...
...
@@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(macro_rules)]
macro_rules!
test
{
(
$nm:ident
,
#[
$
a:meta]
,
$i:item
)
=>
(
mod
$nm
{
#![
$
a]
$i
});
}
...
...
src/test/compile-fail/macro-match-nonterminal.rs
浏览文件 @
c2e26972
...
...
@@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(macro_rules)]
macro_rules!
test
{
(
$a
,
$b
)
=>
(());
}
//~ ERROR Cannot transcribe
fn
main
()
{
...
...
src/test/compile-fail/macro-outer-attributes.rs
浏览文件 @
c2e26972
...
...
@@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(macro_rules)]
macro_rules!
test
{
(
$nm:ident
,
#[
$
a:meta]
,
$i:item
)
=>
(
mod
$nm
{
#[
$
a]
$i
});
}
...
...
src/test/compile-fail/method-macro-backtrace.rs
浏览文件 @
c2e26972
...
...
@@ -10,8 +10,6 @@
// forbid-output: in expansion of
#![feature(macro_rules)]
macro_rules!
make_method
{
(
$name:ident
)
=>
(
fn
$name
(
&
self
)
{
}
)
}
...
...
src/test/compile-fail/pattern-macro-hygiene.rs
浏览文件 @
c2e26972
...
...
@@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(macro_rules)]
macro_rules!
foo
{
()
=>
(
x
)
}
fn
main
()
{
...
...
src/test/compile-fail/recursion_limit.rs
浏览文件 @
c2e26972
...
...
@@ -12,7 +12,6 @@
// deeply nested types that will fail the `Send` check by overflow
// when the recursion limit is set very low.
#![feature(macro_rules)]
#![allow(dead_code)]
#![recursion_limit=
"10"
]
...
...
src/test/compile-fail/svh-change-lit.rs
浏览文件 @
c2e26972
...
...
@@ -13,8 +13,6 @@
// aux-build:svh-b.rs
// aux-build:svh-a-change-lit.rs
#![feature(macro_rules)]
extern
crate
a
;
extern
crate
b
;
//~ ERROR: found possibly newer version of crate `a` which `b` depends on
//~^ NOTE: perhaps this crate needs to be recompiled
...
...
src/test/compile-fail/svh-change-significant-cfg.rs
浏览文件 @
c2e26972
...
...
@@ -13,8 +13,6 @@
// aux-build:svh-b.rs
// aux-build:svh-a-change-significant-cfg.rs
#![feature(macro_rules)]
extern
crate
a
;
extern
crate
b
;
//~ ERROR: found possibly newer version of crate `a` which `b` depends on
//~^ NOTE: perhaps this crate needs to be recompiled
...
...
src/test/compile-fail/svh-change-trait-bound.rs
浏览文件 @
c2e26972
...
...
@@ -13,8 +13,6 @@
// aux-build:svh-b.rs
// aux-build:svh-a-change-trait-bound.rs
#![feature(macro_rules)]
extern
crate
a
;
extern
crate
b
;
//~ ERROR: found possibly newer version of crate `a` which `b` depends on
//~^ NOTE: perhaps this crate needs to be recompiled
...
...
src/test/compile-fail/svh-change-type-arg.rs
浏览文件 @
c2e26972
...
...
@@ -13,8 +13,6 @@
// aux-build:svh-b.rs
// aux-build:svh-a-change-type-arg.rs
#![feature(macro_rules)]
extern
crate
a
;
extern
crate
b
;
//~ ERROR: found possibly newer version of crate `a` which `b` depends on
//~^ NOTE: perhaps this crate needs to be recompiled
...
...
src/test/compile-fail/svh-change-type-ret.rs
浏览文件 @
c2e26972
...
...
@@ -13,8 +13,6 @@
// aux-build:svh-b.rs
// aux-build:svh-a-change-type-ret.rs
#![feature(macro_rules)]
extern
crate
a
;
extern
crate
b
;
//~ ERROR: found possibly newer version of crate `a` which `b` depends on
//~^ NOTE: perhaps this crate needs to be recompiled
...
...
src/test/compile-fail/svh-change-type-static.rs
浏览文件 @
c2e26972
...
...
@@ -13,8 +13,6 @@
// aux-build:svh-b.rs
// aux-build:svh-a-change-type-static.rs
#![feature(macro_rules)]
extern
crate
a
;
extern
crate
b
;
//~ ERROR: found possibly newer version of crate `a` which `b` depends on
//~^ NOTE: perhaps this crate needs to be recompiled
...
...
src/test/compile-fail/trace_macros-format.rs
浏览文件 @
c2e26972
...
...
@@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(
macro_rules,
trace_macros)]
#![feature(trace_macros)]
fn
main
()
{
trace_macros!
();
//~ ERROR trace_macros! accepts only `true` or `false`
...
...
src/test/compile-fail/while-let.rs
浏览文件 @
c2e26972
...
...
@@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(macro_rules)]
fn
macros
()
{
macro_rules!
foo
{
(
$p:pat
,
$e:expr
,
$b:block
)
=>
{{
...
...
src/test/debuginfo/lexical-scope-with-macro.rs
浏览文件 @
c2e26972
...
...
@@ -111,7 +111,6 @@
// lldb-command:continue
#![feature(macro_rules)]
#![omit_gdb_pretty_printer_section]
macro_rules!
trivial
{
...
...
src/test/run-make/pretty-expanded-hygiene/input.pp.rs
浏览文件 @
c2e26972
...
...
@@ -8,7 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(macro_rules)]
// minimal junk
#![no_std]
...
...
src/test/run-make/pretty-expanded-hygiene/input.rs
浏览文件 @
c2e26972
...
...
@@ -8,7 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(macro_rules)]
// minimal junk
#![no_std]
...
...
src/test/run-pass/borrowck-macro-interaction-issue-6304.rs
浏览文件 @
c2e26972
...
...
@@ -11,8 +11,6 @@
// Check that we do not ICE when compiling this
// macro, which reuses the expression `$id`
#![feature(macro_rules)]
struct
Foo
{
a
:
int
...
...
src/test/run-pass/cfg-macros-foo.rs
浏览文件 @
c2e26972
...
...
@@ -13,8 +13,6 @@
// check that cfg correctly chooses between the macro impls (see also
// cfg-macros-notfoo.rs)
#![feature(macro_rules)]
#[cfg(foo)]
#[macro_use]
mod
foo
{
...
...
src/test/run-pass/cfg-macros-notfoo.rs
浏览文件 @
c2e26972
...
...
@@ -13,8 +13,6 @@
// check that cfg correctly chooses between the macro impls (see also
// cfg-macros-foo.rs)
#![feature(macro_rules)]
#[cfg(foo)]
#[macro_use]
mod
foo
{
...
...
src/test/run-pass/cleanup-rvalue-for-scope.rs
浏览文件 @
c2e26972
...
...
@@ -11,8 +11,6 @@
// Test that the lifetime of rvalues in for loops is extended
// to the for loop itself.
#![feature(macro_rules)]
use
std
::
ops
::
Drop
;
static
mut
FLAGS
:
u64
=
0
;
...
...
src/test/run-pass/cleanup-rvalue-scopes.rs
浏览文件 @
c2e26972
...
...
@@ -12,8 +12,6 @@
// statement or end of block, as appropriate given the temporary
// lifetime rules.
#![feature(macro_rules)]
use
std
::
ops
::
Drop
;
static
mut
FLAGS
:
u64
=
0
;
...
...
src/test/run-pass/colorful-write-macros.rs
浏览文件 @
c2e26972
...
...
@@ -11,8 +11,6 @@
// no-pretty-expanded
#![allow(unused_must_use,
dead_code,
deprecated)]
#![feature(macro_rules)]
use
std
::
io
::
MemWriter
;
use
std
::
fmt
;
...
...
src/test/run-pass/const-binops.rs
浏览文件 @
c2e26972
...
...
@@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(macro_rules)]
macro_rules!
assert_approx_eq
{
(
$a:expr
,
$b:expr
)
=>
({
use
std
::
num
::
Float
;
...
...
src/test/run-pass/const-block-item-macro-codegen.rs
浏览文件 @
c2e26972
...
...
@@ -11,8 +11,6 @@
// General test that function items in static blocks
// can be generated with a macro.
#![feature(macro_rules)]
struct
MyType
{
desc
:
&
'static
str
,
data
:
uint
,
...
...
src/test/run-pass/const-block-item.rs
浏览文件 @
c2e26972
...
...
@@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(macro_rules)]
mod
foo
{
pub
trait
Value
{
fn
value
(
&
self
)
->
uint
;
...
...
src/test/run-pass/core-run-destroy.rs
浏览文件 @
c2e26972
...
...
@@ -15,7 +15,6 @@
// memory, which makes for some *confusing* logs. That's why these are here
// instead of in std.
#![feature(macro_rules)]
#![reexport_test_harness_main
=
"test_main"
]
extern
crate
libc
;
...
...
src/test/run-pass/deriving-in-macro.rs
浏览文件 @
c2e26972
...
...
@@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(macro_rules)]
macro_rules!
define_vec
{
()
=>
(
mod
foo
{
...
...
src/test/run-pass/deriving-show.rs
浏览文件 @
c2e26972
...
...
@@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(macro_rules)]
#[derive(Show)]
struct
Unit
;
...
...
src/test/run-pass/enum-discrim-width-stuff.rs
浏览文件 @
c2e26972
...
...
@@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(macro_rules)]
macro_rules!
check
{
(
$m:ident
,
$t:ty
,
$v:expr
)
=>
{{
mod
$m
{
...
...
src/test/run-pass/exponential-notation.rs
浏览文件 @
c2e26972
...
...
@@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(macro_rules)]
use
std
::
num
::
strconv
::
ExponentFormat
::{
ExpBin
,
ExpDec
};
use
std
::
num
::
strconv
::
SignificantDigits
::
DigMax
;
use
std
::
num
::
strconv
::
SignFormat
::{
SignAll
,
SignNeg
};
...
...
src/test/run-pass/html-literals.rs
浏览文件 @
c2e26972
...
...
@@ -10,8 +10,6 @@
// A test of the macro system. Can we do HTML literals?
#![feature(macro_rules)]
/*
...
...
src/test/run-pass/hygienic-labels-in-let.rs
浏览文件 @
c2e26972
...
...
@@ -10,8 +10,6 @@
// ignore-pretty: pprust doesn't print hygiene output
#![feature(macro_rules)]
macro_rules!
loop_x
{
(
$e
:
expr
)
=>
{
// $e shouldn't be able to interact with this 'x
...
...
src/test/run-pass/hygienic-labels.rs
浏览文件 @
c2e26972
...
...
@@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(macro_rules)]
macro_rules!
loop_x
{
(
$e
:
expr
)
=>
{
// $e shouldn't be able to interact with this 'x
...
...
src/test/run-pass/ifmt.rs
浏览文件 @
c2e26972
...
...
@@ -11,7 +11,6 @@
// no-pretty-expanded unnecessary unsafe block generated
// ignore-lexer-test FIXME #15679
#![feature(macro_rules)]
#![deny(warnings)]
#![allow(unused_must_use)]
...
...
src/test/run-pass/intrinsics-math.rs
浏览文件 @
c2e26972
...
...
@@ -9,7 +9,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(globs,
macro_rules,
intrinsics)]
#![feature(globs,
intrinsics)]
macro_rules!
assert_approx_eq
{
(
$a:expr
,
$b:expr
)
=>
({
...
...
src/test/run-pass/issue-14936.rs
浏览文件 @
c2e26972
...
...
@@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(asm
,
macro_rules
)]
#![feature(asm)]
type
History
=
Vec
<&
'static
str
>
;
...
...
src/test/run-pass/issue-15189.rs
浏览文件 @
c2e26972
...
...
@@ -10,8 +10,6 @@
// ignore-pretty
#![feature(macro_rules)]
macro_rules!
third
{
(
$e:expr
)
=>
({
let
x
=
2
;
$e
[
x
]})
}
...
...
src/test/run-pass/issue-15221.rs
浏览文件 @
c2e26972
...
...
@@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(macro_rules)]
macro_rules!
inner
{
(
$e:pat
)
=>
(
$e
)
}
...
...
src/test/run-pass/issue-5060.rs
浏览文件 @
c2e26972
...
...
@@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(macro_rules)]
macro_rules!
print_hd_tl
{
(
$field_hd:ident
,
$
(
$field_tl:ident
),
+
)
=>
({
print!
(
"{}"
,
stringify!
(
$field_hd
));
...
...
src/test/run-pass/issue-5554.rs
浏览文件 @
c2e26972
...
...
@@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(macro_rules)]
use
std
::
default
::
Default
;
pub
struct
X
<
T
>
{
...
...
src/test/run-pass/issue-5718.rs
浏览文件 @
c2e26972
...
...
@@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(macro_rules)]
struct
Element
;
macro_rules!
foo
{
...
...
src/test/run-pass/issue-7911.rs
浏览文件 @
c2e26972
...
...
@@ -14,8 +14,6 @@
// with different mutability in macro in two methods
#![allow(unused_variable)]
// unused foobar_immut + foobar_mut
#![feature(macro_rules)]
trait
FooBar
{}
struct
Bar
(
i32
);
struct
Foo
{
bar
:
Bar
}
...
...
src/test/run-pass/issue-8709.rs
浏览文件 @
c2e26972
...
...
@@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(macro_rules)]
macro_rules!
sty
{
(
$t:ty
)
=>
(
stringify!
(
$t
))
}
...
...
src/test/run-pass/issue-8851.rs
浏览文件 @
c2e26972
...
...
@@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(macro_rules)]
// after fixing #9384 and implementing hygiene for match bindings,
// this now fails because the insertion of the 'y' into the match
// doesn't cause capture. Making this macro hygienic (as I've done)
...
...
src/test/run-pass/issue-9110.rs
浏览文件 @
c2e26972
...
...
@@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(macro_rules)]
macro_rules!
silly_macro
{
()
=>
(
pub
mod
Qux
{
...
...
src/test/run-pass/issue-9129.rs
浏览文件 @
c2e26972
...
...
@@ -10,8 +10,6 @@
// ignore-pretty
#![feature(macro_rules)]
pub
trait
bomb
{
fn
boom
(
&
self
,
Ident
);
}
pub
struct
S
;
...
...
src/test/run-pass/issue-9737.rs
浏览文件 @
c2e26972
...
...
@@ -10,8 +10,6 @@
// ignore-test #9737
#![feature(macro_rules)]
macro_rules!
f
{
(
v
:
$x:expr
)
=>
(
println!
(
"{}"
,
$x
)
)
}
...
...
src/test/run-pass/lambda-var-hygiene.rs
浏览文件 @
c2e26972
...
...
@@ -10,8 +10,6 @@
// ignore-test #9383
#![feature(macro_rules)]
// shouldn't affect evaluation of $ex:
macro_rules!
bad_macro
{
(
$ex:expr
)
=>
({(|
_
x
|
{
$ex
})
(
9
)
})
...
...
src/test/run-pass/let-var-hygiene.rs
浏览文件 @
c2e26972
...
...
@@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(macro_rules)]
// shouldn't affect evaluation of $ex:
macro_rules!
bad_macro
{
(
$ex:expr
)
=>
({
let
_
x
=
9
i
;
$ex
})
...
...
src/test/run-pass/macro-2.rs
浏览文件 @
c2e26972
...
...
@@ -10,8 +10,6 @@
// ignore-pretty - token trees can't pretty print
#![feature(macro_rules)]
pub
fn
main
()
{
macro_rules!
mylambda_tt
{
...
...
src/test/run-pass/macro-attribute-expansion.rs
浏览文件 @
c2e26972
...
...
@@ -10,8 +10,6 @@
// ignore-pretty - token trees can't pretty print
#![feature(macro_rules)]
macro_rules!
descriptions
{
(
$name:ident
is
$desc:expr
)
=>
{
// Check that we will correctly expand attributes
...
...
src/test/run-pass/macro-attributes.rs
浏览文件 @
c2e26972
...
...
@@ -10,8 +10,6 @@
// ignore-pretty - token trees can't pretty print
#![feature(macro_rules)]
macro_rules!
compiles_fine
{
(
#[
$
at:meta]
)
=>
{
// test that the different types of attributes work
...
...
src/test/run-pass/macro-block-nonterminal.rs
浏览文件 @
c2e26972
...
...
@@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(macro_rules)]
macro_rules!
do_block
{
(
$val:block
)
=>
{
$val
}
}
...
...
src/test/run-pass/macro-crate-use.rs
浏览文件 @
c2e26972
...
...
@@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(macro_rules)]
pub
fn
increment
(
x
:
uint
)
->
uint
{
x
+
1
}
...
...
src/test/run-pass/macro-deep_expansion.rs
浏览文件 @
c2e26972
...
...
@@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(macro_rules)]
macro_rules!
foo2
{
()
=>
{
"foo"
...
...
src/test/run-pass/macro-interpolation.rs
浏览文件 @
c2e26972
此差异已折叠。
点击以展开。
src/test/run-pass/macro-invocation-in-count-expr-fixed-array-type.rs
浏览文件 @
c2e26972
此差异已折叠。
点击以展开。
src/test/run-pass/macro-meta-items.rs
浏览文件 @
c2e26972
此差异已折叠。
点击以展开。
src/test/run-pass/macro-method-issue-4621.rs
浏览文件 @
c2e26972
此差异已折叠。
点击以展开。
src/test/run-pass/macro-multiple-items.rs
浏览文件 @
c2e26972
此差异已折叠。
点击以展开。
src/test/run-pass/macro-nt-list.rs
浏览文件 @
c2e26972
此差异已折叠。
点击以展开。
src/test/run-pass/macro-of-higher-order.rs
浏览文件 @
c2e26972
此差异已折叠。
点击以展开。
src/test/run-pass/macro-pat.rs
浏览文件 @
c2e26972
此差异已折叠。
点击以展开。
src/test/run-pass/macro-path.rs
浏览文件 @
c2e26972
此差异已折叠。
点击以展开。
src/test/run-pass/macro-stmt.rs
浏览文件 @
c2e26972
此差异已折叠。
点击以展开。
src/test/run-pass/macro-with-attrs1.rs
浏览文件 @
c2e26972
此差异已折叠。
点击以展开。
src/test/run-pass/macro-with-attrs2.rs
浏览文件 @
c2e26972
此差异已折叠。
点击以展开。
src/test/run-pass/macro-with-braces-in-expr-position.rs
浏览文件 @
c2e26972
此差异已折叠。
点击以展开。
src/test/run-pass/match-in-macro.rs
浏览文件 @
c2e26972
此差异已折叠。
点击以展开。
src/test/run-pass/match-var-hygiene.rs
浏览文件 @
c2e26972
此差异已折叠。
点击以展开。
src/test/run-pass/non-built-in-quote.rs
浏览文件 @
c2e26972
此差异已折叠。
点击以展开。
src/test/run-pass/nullable-pointer-iotareduction.rs
浏览文件 @
c2e26972
此差异已折叠。
点击以展开。
src/test/run-pass/nullable-pointer-size.rs
浏览文件 @
c2e26972
此差异已折叠。
点击以展开。
src/test/run-pass/small-enums-with-fields.rs
浏览文件 @
c2e26972
此差异已折叠。
点击以展开。
src/test/run-pass/svh-add-comment.rs
浏览文件 @
c2e26972
此差异已折叠。
点击以展开。
src/test/run-pass/svh-add-doc.rs
浏览文件 @
c2e26972
此差异已折叠。
点击以展开。
src/test/run-pass/svh-add-macro.rs
浏览文件 @
c2e26972
此差异已折叠。
点击以展开。
src/test/run-pass/svh-add-nothing.rs
浏览文件 @
c2e26972
此差异已折叠。
点击以展开。
src/test/run-pass/svh-add-redundant-cfg.rs
浏览文件 @
c2e26972
此差异已折叠。
点击以展开。
src/test/run-pass/svh-add-whitespace.rs
浏览文件 @
c2e26972
此差异已折叠。
点击以展开。
src/test/run-pass/syntax-extension-source-utils.rs
浏览文件 @
c2e26972
此差异已折叠。
点击以展开。
src/test/run-pass/tcp-connect-timeouts.rs
浏览文件 @
c2e26972
此差异已折叠。
点击以展开。
src/test/run-pass/typeck-macro-interaction-issue-8852.rs
浏览文件 @
c2e26972
此差异已折叠。
点击以展开。
src/test/run-pass/vec-macro-with-brackets.rs
浏览文件 @
c2e26972
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录