Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
6f173cdb
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,发现更多精彩内容 >>
提交
6f173cdb
编写于
12月 05, 2014
作者:
C
Corey Richardson
浏览文件
操作
浏览文件
下载
差异文件
rollup merge of #19472: nick29581/iflet
Closes #19469 r?
上级
560b8f6c
c200ae5a
变更
11
显示空白变更内容
内联
并排
Showing
11 changed file
with
5 addition
and
33 deletion
+5
-33
src/libsyntax/feature_gate.rs
src/libsyntax/feature_gate.rs
+3
-16
src/test/compile-fail/borrow-tuple-fields.rs
src/test/compile-fail/borrow-tuple-fields.rs
+0
-2
src/test/compile-fail/if-let.rs
src/test/compile-fail/if-let.rs
+1
-1
src/test/compile-fail/issue-18566.rs
src/test/compile-fail/issue-18566.rs
+0
-2
src/test/compile-fail/issue-19244-1.rs
src/test/compile-fail/issue-19244-1.rs
+0
-2
src/test/compile-fail/lint-unnecessary-parens.rs
src/test/compile-fail/lint-unnecessary-parens.rs
+0
-1
src/test/compile-fail/move-fragments-1.rs
src/test/compile-fail/move-fragments-1.rs
+0
-2
src/test/compile-fail/move-out-of-tuple-field.rs
src/test/compile-fail/move-out-of-tuple-field.rs
+0
-2
src/test/compile-fail/tuple-index-not-tuple.rs
src/test/compile-fail/tuple-index-not-tuple.rs
+0
-2
src/test/compile-fail/tuple-index-out-of-bounds.rs
src/test/compile-fail/tuple-index-out-of-bounds.rs
+0
-2
src/test/compile-fail/while-let.rs
src/test/compile-fail/while-let.rs
+1
-1
未找到文件。
src/libsyntax/feature_gate.rs
浏览文件 @
6f173cdb
...
...
@@ -65,13 +65,13 @@
(
"unboxed_closures"
,
Active
),
(
"import_shadowing"
,
Active
),
(
"advanced_slice_patterns"
,
Active
),
(
"tuple_indexing"
,
Ac
tive
),
(
"tuple_indexing"
,
Ac
cepted
),
(
"associated_types"
,
Active
),
(
"visible_private_types"
,
Active
),
(
"slicing_syntax"
,
Active
),
(
"if_let"
,
Ac
tive
),
(
"while_let"
,
Ac
tive
),
(
"if_let"
,
Ac
cepted
),
(
"while_let"
,
Ac
cepted
),
// if you change this list without updating src/doc/reference.md, cmr will be sad
...
...
@@ -309,24 +309,11 @@ fn visit_expr(&mut self, e: &ast::Expr) {
"unboxed closures are a work-in-progress
\
feature with known bugs"
);
}
ast
::
ExprTupField
(
..
)
=>
{
self
.gate_feature
(
"tuple_indexing"
,
e
.span
,
"tuple indexing is experimental"
);
}
ast
::
ExprIfLet
(
..
)
=>
{
self
.gate_feature
(
"if_let"
,
e
.span
,
"`if let` syntax is experimental"
);
}
ast
::
ExprSlice
(
..
)
=>
{
self
.gate_feature
(
"slicing_syntax"
,
e
.span
,
"slicing syntax is experimental"
);
}
ast
::
ExprWhileLet
(
..
)
=>
{
self
.gate_feature
(
"while_let"
,
e
.span
,
"`while let` syntax is experimental"
);
}
_
=>
{}
}
visit
::
walk_expr
(
self
,
e
);
...
...
src/test/compile-fail/borrow-tuple-fields.rs
浏览文件 @
6f173cdb
...
...
@@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(tuple_indexing)]
struct
Foo
(
Box
<
int
>
,
int
);
struct
Bar
(
int
,
int
);
...
...
src/test/compile-fail/if-let.rs
浏览文件 @
6f173cdb
...
...
@@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(macro_rules
,if_let
)]
#![feature(macro_rules)]
fn
macros
()
{
macro_rules!
foo
{
...
...
src/test/compile-fail/issue-18566.rs
浏览文件 @
6f173cdb
...
...
@@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(tuple_indexing)]
struct
MyPtr
<
'a
>
(
&
'a
mut
uint
);
impl
<
'a
>
Deref
<
uint
>
for
MyPtr
<
'a
>
{
fn
deref
<
'b
>
(
&
'b
self
)
->
&
'b
uint
{
self
.0
}
...
...
src/test/compile-fail/issue-19244-1.rs
浏览文件 @
6f173cdb
...
...
@@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(tuple_indexing)]
const
TUP
:
(
uint
,)
=
(
42
,);
fn
main
()
{
...
...
src/test/compile-fail/lint-unnecessary-parens.rs
浏览文件 @
6f173cdb
...
...
@@ -9,7 +9,6 @@
// except according to those terms.
#![deny(unused_parens)]
#![feature(if_let,while_let)]
#[deriving(Eq,
PartialEq)]
struct
X
{
y
:
bool
}
...
...
src/test/compile-fail/move-fragments-1.rs
浏览文件 @
6f173cdb
...
...
@@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(tuple_indexing)]
// Test that we correctly compute the move fragments for a fn.
//
// Note that the code below is not actually incorrect; the
...
...
src/test/compile-fail/move-out-of-tuple-field.rs
浏览文件 @
6f173cdb
...
...
@@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(tuple_indexing)]
struct
Foo
(
Box
<
int
>
);
fn
main
()
{
...
...
src/test/compile-fail/tuple-index-not-tuple.rs
浏览文件 @
6f173cdb
...
...
@@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(tuple_indexing)]
struct
Point
{
x
:
int
,
y
:
int
}
struct
Empty
;
...
...
src/test/compile-fail/tuple-index-out-of-bounds.rs
浏览文件 @
6f173cdb
...
...
@@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(tuple_indexing)]
struct
Point
(
int
,
int
);
fn
main
()
{
...
...
src/test/compile-fail/while-let.rs
浏览文件 @
6f173cdb
...
...
@@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(macro_rules
,while_let
)]
#![feature(macro_rules)]
fn
macros
()
{
macro_rules!
foo
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录