Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
fc058191
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,发现更多精彩内容 >>
提交
fc058191
编写于
7月 21, 2013
作者:
D
Daniel Micay
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #7936 from thestinger/cleanup
rm obsolete no-op lints
上级
fe3f75ff
13b474dc
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
0 addition
and
37 deletion
+0
-37
src/etc/extract-tests.py
src/etc/extract-tests.py
+0
-3
src/etc/zsh/_rust
src/etc/zsh/_rust
+0
-3
src/librustc/middle/lint.rs
src/librustc/middle/lint.rs
+0
-16
src/librustc/rustc.rs
src/librustc/rustc.rs
+0
-2
src/libstd/result.rs
src/libstd/result.rs
+0
-1
src/libstd/tuple.rs
src/libstd/tuple.rs
+0
-1
src/libsyntax/syntax.rs
src/libsyntax/syntax.rs
+0
-2
src/test/run-pass-fulldeps/quote-tokens.rs
src/test/run-pass-fulldeps/quote-tokens.rs
+0
-2
src/test/run-pass/auto-encode.rs
src/test/run-pass/auto-encode.rs
+0
-2
src/test/run-pass/fixed_length_copy.rs
src/test/run-pass/fixed_length_copy.rs
+0
-4
src/test/run-pass/issue-2550.rs
src/test/run-pass/issue-2550.rs
+0
-1
未找到文件。
src/etc/extract-tests.py
浏览文件 @
fc058191
...
...
@@ -60,9 +60,6 @@ while cur < len(lines):
if
not
re
.
search
(
r
"\bextern mod extra\b"
,
block
):
block
=
"extern mod extra;
\n
"
+
block
block
=
"""#[ forbid(ctypes) ];
#[ forbid(deprecated_pattern) ];
#[ forbid(implicit_copies) ];
#[ forbid(non_implicitly_copyable_typarams) ];
#[ forbid(path_statement) ];
#[ forbid(type_limits) ];
#[ forbid(unrecognized_lint) ];
...
...
src/etc/zsh/_rust
浏览文件 @
fc058191
...
...
@@ -33,12 +33,9 @@ _rustc_opts_switches=(
)
_rustc_opts_lint=(
'path-statement[path statements with no effect]'
'deprecated-pattern[warn about deprecated uses of pattern bindings]'
'non-implicitly-copyable-typarams[passing non implicitly copyable types as copy type params]'
'missing-trait-doc[detects missing documentation for traits]'
'missing-struct-doc[detects missing documentation for structs]'
'ctypes[proper use of core::libc types in foreign modules]'
'implicit-copies[implicit copies of non implicitly copyable data]'
"unused-mut[detect mut variables which don't need to be mutable]"
'unused-imports[imports that are never used]'
'heap-memory[use of any (~ type or @ type) heap memory]'
...
...
src/librustc/middle/lint.rs
浏览文件 @
fc058191
...
...
@@ -75,9 +75,7 @@ pub enum lint {
unnecessary_qualification
,
while_true
,
path_statement
,
implicit_copies
,
unrecognized_lint
,
deprecated_pattern
,
non_camel_case_types
,
non_uppercase_statics
,
type_limits
,
...
...
@@ -182,20 +180,6 @@ enum LintSource {
default
:
warn
}),
(
"implicit_copies"
,
LintSpec
{
lint
:
implicit_copies
,
desc
:
"implicit copies of non implicitly copyable data"
,
default
:
warn
}),
(
"deprecated_pattern"
,
LintSpec
{
lint
:
deprecated_pattern
,
desc
:
"warn about deprecated uses of pattern bindings"
,
default
:
allow
}),
(
"non_camel_case_types"
,
LintSpec
{
lint
:
non_camel_case_types
,
...
...
src/librustc/rustc.rs
浏览文件 @
fc058191
...
...
@@ -17,8 +17,6 @@
#[license
=
"MIT/ASL2"
]
;
#[crate_type
=
"lib"
]
;
#[deny(deprecated_pattern)]
;
extern
mod
extra
;
extern
mod
syntax
;
...
...
src/libstd/result.rs
浏览文件 @
fc058191
...
...
@@ -396,7 +396,6 @@ pub fn unwrap_err<T, U>(res: Result<T, U>) -> U {
}
#[cfg(test)]
#[allow(non_implicitly_copyable_typarams)]
mod
tests
{
use
result
::{
Err
,
Ok
,
Result
,
chain
,
get
,
get_err
};
use
result
;
...
...
src/libstd/tuple.rs
浏览文件 @
fc058191
...
...
@@ -384,7 +384,6 @@ fn test_tuple_ref() {
}
#[test]
#[allow(non_implicitly_copyable_typarams)]
fn
test_tuple
()
{
assert_eq!
((
948
,
4039.48
)
.first
(),
948
);
assert_eq!
((
34.5
,
~
"foo"
)
.second
(),
~
"foo"
);
...
...
src/libsyntax/syntax.rs
浏览文件 @
fc058191
...
...
@@ -20,8 +20,6 @@
#[license
=
"MIT/ASL2"
]
;
#[crate_type
=
"lib"
]
;
#[deny(deprecated_pattern)]
;
extern
mod
extra
;
pub
mod
util
{
...
...
src/test/run-pass-fulldeps/quote-tokens.rs
浏览文件 @
fc058191
...
...
@@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#[allow(non_implicitly_copyable_typarams)]
;
extern
mod
syntax
;
use
syntax
::
ext
::
base
::
ExtCtxt
;
...
...
src/test/run-pass/auto-encode.rs
浏览文件 @
fc058191
...
...
@@ -12,8 +12,6 @@
// xfail-test #6122
#[forbid(deprecated_pattern)]
;
extern
mod
extra
;
// These tests used to be separate files, but I wanted to refactor all
...
...
src/test/run-pass/fixed_length_copy.rs
浏览文件 @
fc058191
...
...
@@ -8,10 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// error on implicit copies to check fixed length vectors
// are implicitly copyable
#[deny(implicit_copies)]
pub
fn
main
()
{
let
arr
=
[
1
,
2
,
3
];
let
arr2
=
arr
;
...
...
src/test/run-pass/issue-2550.rs
浏览文件 @
fc058191
...
...
@@ -21,7 +21,6 @@ fn C(x: uint) -> C {
fn
f
<
T
>
(
_
x
:
T
)
{
}
#[deny(non_implicitly_copyable_typarams)]
pub
fn
main
()
{
f
(
C
(
1u
));
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录