Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
117aa8cf
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,发现更多精彩内容 >>
提交
117aa8cf
编写于
9月 02, 2012
作者:
B
Brian Anderson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
core: warn(non_camel_case_types) everywhere, with few exceptions
上级
a80b7dc7
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
9 addition
and
55 deletion
+9
-55
src/libcore/core.rc
src/libcore/core.rc
+2
-52
src/libcore/extfmt.rs
src/libcore/extfmt.rs
+1
-0
src/libcore/iter-trait/option.rs
src/libcore/iter-trait/option.rs
+1
-0
src/libcore/managed.rs
src/libcore/managed.rs
+0
-1
src/libcore/ops.rs
src/libcore/ops.rs
+2
-0
src/libcore/option.rs
src/libcore/option.rs
+2
-2
src/libcore/rt.rs
src/libcore/rt.rs
+1
-0
未找到文件。
src/libcore/core.rc
浏览文件 @
117aa8cf
...
...
@@ -32,6 +32,8 @@
#[no_core];
#[deny(vecs_implicitly_copyable)];
// XXX: Switch to deny after snapshot
#[warn(non_camel_case_types)];
export int, i8, i16, i32, i64;
export uint, u8, u16, u32, u64;
...
...
@@ -71,7 +73,6 @@ export priv;
// Built-in-type support modules
/// Operations and constants for `int`
#[warn(non_camel_case_types)]
#[path = "int-template"]
mod int {
import inst::{ hash, pow };
...
...
@@ -81,7 +82,6 @@ mod int {
}
/// Operations and constants for `i8`
#[warn(non_camel_case_types)]
#[path = "int-template"]
mod i8 {
#[path = "i8.rs"]
...
...
@@ -89,7 +89,6 @@ mod i8 {
}
/// Operations and constants for `i16`
#[warn(non_camel_case_types)]
#[path = "int-template"]
mod i16 {
#[path = "i16.rs"]
...
...
@@ -97,7 +96,6 @@ mod i16 {
}
/// Operations and constants for `i32`
#[warn(non_camel_case_types)]
#[path = "int-template"]
mod i32 {
#[path = "i32.rs"]
...
...
@@ -105,7 +103,6 @@ mod i32 {
}
/// Operations and constants for `i64`
#[warn(non_camel_case_types)]
#[path = "int-template"]
mod i64 {
#[path = "i64.rs"]
...
...
@@ -113,7 +110,6 @@ mod i64 {
}
/// Operations and constants for `uint`
#[warn(non_camel_case_types)]
#[path = "uint-template"]
mod uint {
import inst::{
...
...
@@ -128,7 +124,6 @@ mod uint {
}
/// Operations and constants for `u8`
#[warn(non_camel_case_types)]
#[path = "uint-template"]
mod u8 {
import inst::is_ascii;
...
...
@@ -139,7 +134,6 @@ mod u8 {
}
/// Operations and constants for `u16`
#[warn(non_camel_case_types)]
#[path = "uint-template"]
mod u16 {
#[path = "u16.rs"]
...
...
@@ -147,7 +141,6 @@ mod u16 {
}
/// Operations and constants for `u32`
#[warn(non_camel_case_types)]
#[path = "uint-template"]
mod u32 {
#[path = "u32.rs"]
...
...
@@ -155,7 +148,6 @@ mod u32 {
}
/// Operations and constants for `u64`
#[warn(non_camel_case_types)]
#[path = "uint-template"]
mod u64 {
#[path = "u64.rs"]
...
...
@@ -163,48 +155,29 @@ mod u64 {
}
#[warn(non_camel_case_types)]
mod box;
#[warn(non_camel_case_types)]
mod char;
#[warn(non_camel_case_types)]
mod float;
#[warn(non_camel_case_types)]
mod f32;
#[warn(non_camel_case_types)]
mod f64;
#[warn(non_camel_case_types)]
mod str;
#[warn(non_camel_case_types)]
mod ptr;
#[warn(non_camel_case_types)]
mod vec;
#[warn(non_camel_case_types)]
mod at_vec;
#[warn(non_camel_case_types)]
mod bool;
#[warn(non_camel_case_types)]
mod tuple;
#[warn(non_camel_case_types)]
mod unit;
#[warn(non_camel_case_types)]
mod uniq;
// Ubiquitous-utility-type modules
#[cfg(notest)]
mod ops;
#[warn(non_camel_case_types)]
mod cmp;
#[warn(non_camel_case_types)]
mod num;
#[warn(non_camel_case_types)]
mod hash;
#[warn(non_camel_case_types)]
mod either;
#[warn(non_camel_case_types)]
mod iter;
#[warn(non_camel_case_types)]
mod logging;
mod option;
#[path="iter-trait"]
...
...
@@ -213,60 +186,41 @@ mod option_iter {
mod inst;
}
mod result;
#[warn(non_camel_case_types)]
mod to_str;
#[warn(non_camel_case_types)]
mod to_bytes;
#[warn(non_camel_case_types)]
mod util;
// Data structure modules
#[warn(non_camel_case_types)]
mod dvec;
#[path="iter-trait"]
#[warn(non_camel_case_types)]
mod dvec_iter {
#[path = "dvec.rs"]
mod inst;
}
#[warn(non_camel_case_types)]
mod dlist;
#[path="iter-trait"]
#[warn(non_camel_case_types)]
mod dlist_iter {
#[path ="dlist.rs"]
mod inst;
}
#[warn(non_camel_case_types)]
mod send_map;
// Concurrency
#[warn(non_camel_case_types)]
mod comm;
#[warn(non_camel_case_types)]
mod task;
//#[warn(non_camel_ase_types)] pipec code continues to trip this warning
mod future;
#[warn(non_camel_case_types)]
mod pipes;
// Runtime and language-primitive support
#[warn(non_camel_case_types)]
mod io;
mod libc;
#[warn(non_camel_case_types)]
mod os;
#[warn(non_camel_case_types)]
mod path;
#[warn(non_camel_case_types)]
mod rand;
#[warn(non_camel_case_types)]
mod run;
#[warn(non_camel_case_types)]
mod sys;
#[warn(non_camel_case_types)]
mod unsafe;
mod managed;
...
...
@@ -284,13 +238,9 @@ mod rt;
// For internal use, not exported
#[warn(non_camel_case_types)]
mod unicode;
#[warn(non_camel_case_types)]
mod priv;
#[warn(non_camel_case_types)]
mod cmath;
#[warn(non_camel_case_types)]
mod stackwalk;
// Local Variables:
...
...
src/libcore/extfmt.rs
浏览文件 @
117aa8cf
#[doc(hidden)]
;
#[allow(non_camel_case_types)]
;
/*
Syntax Extension: fmt
...
...
src/libcore/iter-trait/option.rs
浏览文件 @
117aa8cf
#[allow(non_camel_case_types)]
type
IMPL_T
<
A
>
=
Option
<
A
>
;
pure
fn
EACH
<
A
>
(
self
:
IMPL_T
<
A
>
,
f
:
fn
(
A
)
->
bool
)
{
...
...
src/libcore/managed.rs
浏览文件 @
117aa8cf
...
...
@@ -9,7 +9,6 @@
*/
#[forbid(non_camel_case_types)]
;
#[forbid(deprecated_mode)]
;
#[forbid(deprecated_pattern)]
;
...
...
src/libcore/ops.rs
浏览文件 @
117aa8cf
// Core operators and kinds.
#[allow(non_camel_case_types)]
;
#[cfg(notest)]
#[lang=
"const"
]
trait
const
{
...
...
src/libcore/option.rs
浏览文件 @
117aa8cf
...
...
@@ -290,14 +290,14 @@ fn test_unwrap_str() {
#[test]
fn
test_unwrap_resource
()
{
struct
r
{
struct
R
{
let
i
:
@
mut
int
;
new
(
i
:
@
mut
int
)
{
self
.i
=
i
;
}
drop
{
*
(
self
.i
)
+=
1
;
}
}
let
i
=
@
mut
0
;
{
let
x
=
r
(
i
);
let
x
=
R
(
i
);
let
opt
=
Some
(
x
);
let
_
y
=
unwrap
(
opt
);
}
...
...
src/libcore/rt.rs
浏览文件 @
117aa8cf
...
...
@@ -8,6 +8,7 @@
import
libc
::
size_t
;
import
libc
::
uintptr_t
;
#[allow(non_camel_case_types)]
type
rust_task
=
c_void
;
extern
mod
rustrt
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录