Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
4d6836f4
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,发现更多精彩内容 >>
提交
4d6836f4
编写于
1月 24, 2014
作者:
A
Alex Crichton
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix privacy fallout from previous change
上级
31ac9c42
变更
32
隐藏空白更改
内联
并排
Showing
32 changed file
with
51 addition
and
51 deletion
+51
-51
doc/guide-container.md
doc/guide-container.md
+2
-2
src/libextra/arc.rs
src/libextra/arc.rs
+2
-2
src/libextra/dlist.rs
src/libextra/dlist.rs
+4
-4
src/libextra/lru_cache.rs
src/libextra/lru_cache.rs
+5
-5
src/libextra/sync.rs
src/libextra/sync.rs
+2
-2
src/librustc/middle/ty.rs
src/librustc/middle/ty.rs
+1
-1
src/librustc/util/sha2.rs
src/librustc/util/sha2.rs
+2
-2
src/librustpkg/package_source.rs
src/librustpkg/package_source.rs
+2
-2
src/librustuv/homing.rs
src/librustuv/homing.rs
+1
-1
src/libstd/comm/select.rs
src/libstd/comm/select.rs
+1
-1
src/libsyntax/parse/parser.rs
src/libsyntax/parse/parser.rs
+1
-1
src/test/auxiliary/iss.rs
src/test/auxiliary/iss.rs
+1
-1
src/test/bench/shootout-meteor.rs
src/test/bench/shootout-meteor.rs
+3
-3
src/test/compile-fail/lint-missing-doc.rs
src/test/compile-fail/lint-missing-doc.rs
+2
-2
src/test/compile-fail/mutable-class-fields-2.rs
src/test/compile-fail/mutable-class-fields-2.rs
+1
-1
src/test/compile-fail/mutable-class-fields.rs
src/test/compile-fail/mutable-class-fields.rs
+1
-1
src/test/compile-fail/useless-priv.rs
src/test/compile-fail/useless-priv.rs
+2
-2
src/test/run-pass/class-cast-to-trait-multiple-types.rs
src/test/run-pass/class-cast-to-trait-multiple-types.rs
+2
-2
src/test/run-pass/class-cast-to-trait.rs
src/test/run-pass/class-cast-to-trait.rs
+1
-1
src/test/run-pass/class-impl-very-parameterized-trait.rs
src/test/run-pass/class-impl-very-parameterized-trait.rs
+1
-1
src/test/run-pass/class-implement-trait-cross-crate.rs
src/test/run-pass/class-implement-trait-cross-crate.rs
+1
-1
src/test/run-pass/class-implement-traits.rs
src/test/run-pass/class-implement-traits.rs
+1
-1
src/test/run-pass/class-methods.rs
src/test/run-pass/class-methods.rs
+1
-1
src/test/run-pass/class-poly-methods.rs
src/test/run-pass/class-poly-methods.rs
+2
-2
src/test/run-pass/class-separate-impl.rs
src/test/run-pass/class-separate-impl.rs
+1
-1
src/test/run-pass/class-typarams.rs
src/test/run-pass/class-typarams.rs
+1
-1
src/test/run-pass/classes-simple-method.rs
src/test/run-pass/classes-simple-method.rs
+1
-1
src/test/run-pass/classes-simple.rs
src/test/run-pass/classes-simple.rs
+1
-1
src/test/run-pass/classes.rs
src/test/run-pass/classes.rs
+1
-1
src/test/run-pass/issue-3563-3.rs
src/test/run-pass/issue-3563-3.rs
+2
-2
src/test/run-pass/private-class-field.rs
src/test/run-pass/private-class-field.rs
+1
-1
src/test/run-pass/private-method.rs
src/test/run-pass/private-method.rs
+1
-1
未找到文件。
doc/guide-container.md
浏览文件 @
4d6836f4
...
...
@@ -90,7 +90,7 @@ Reaching the end of the iterator is signalled by returning `None` instead of
# fn main() {}
/// A stream of N zeroes
struct ZeroStream {
priv
remaining: uint
remaining: uint
}
impl ZeroStream {
...
...
@@ -305,7 +305,7 @@ The `ZeroStream` from earlier can provide an exact lower and upper bound:
# fn main() {}
/// A stream of N zeroes
struct ZeroStream {
priv
remaining: uint
remaining: uint
}
impl ZeroStream {
...
...
src/libextra/arc.rs
浏览文件 @
4d6836f4
...
...
@@ -148,7 +148,7 @@ fn clone(&self) -> Arc<T> {
****************************************************************************/
#[doc(hidden)]
struct
MutexArcInner
<
T
>
{
priv
lock
:
Mutex
,
priv
failed
:
bool
,
priv
data
:
T
}
struct
MutexArcInner
<
T
>
{
lock
:
Mutex
,
failed
:
bool
,
data
:
T
}
/// An Arc with mutable data protected by a blocking mutex.
#[no_freeze]
...
...
@@ -312,7 +312,7 @@ fn new<'a>(flag: &'a mut bool) -> PoisonOnFail {
****************************************************************************/
#[doc(hidden)]
struct
RWArcInner
<
T
>
{
priv
lock
:
RWLock
,
priv
failed
:
bool
,
priv
data
:
T
}
struct
RWArcInner
<
T
>
{
lock
:
RWLock
,
failed
:
bool
,
data
:
T
}
/**
* A dual-mode Arc protected by a reader-writer lock. The data can be accessed
* mutably or immutably, and immutably-accessing tasks may run concurrently.
...
...
src/libextra/dlist.rs
浏览文件 @
4d6836f4
...
...
@@ -38,12 +38,12 @@ pub struct DList<T> {
}
type
Link
<
T
>
=
Option
<~
Node
<
T
>>
;
struct
Rawlink
<
T
>
{
p
riv
p
:
*
mut
T
}
struct
Rawlink
<
T
>
{
p
:
*
mut
T
}
struct
Node
<
T
>
{
priv
next
:
Link
<
T
>
,
pr
iv
pr
ev
:
Rawlink
<
Node
<
T
>>
,
priv
value
:
T
,
next
:
Link
<
T
>
,
prev
:
Rawlink
<
Node
<
T
>>
,
value
:
T
,
}
/// Double-ended DList iterator
...
...
src/libextra/lru_cache.rs
浏览文件 @
4d6836f4
...
...
@@ -43,13 +43,13 @@
use
std
::
ptr
;
use
std
::
cast
;
struct
KeyRef
<
K
>
{
priv
k
:
*
K
}
struct
KeyRef
<
K
>
{
k
:
*
K
}
struct
LruEntry
<
K
,
V
>
{
priv
key
:
Option
<
K
>
,
priv
value
:
Option
<
V
>
,
priv
next
:
*
mut
LruEntry
<
K
,
V
>
,
pr
iv
pr
ev
:
*
mut
LruEntry
<
K
,
V
>
,
key
:
Option
<
K
>
,
value
:
Option
<
V
>
,
next
:
*
mut
LruEntry
<
K
,
V
>
,
prev
:
*
mut
LruEntry
<
K
,
V
>
,
}
/// An LRU Cache.
...
...
src/libextra/sync.rs
浏览文件 @
4d6836f4
...
...
@@ -709,8 +709,8 @@ pub struct Barrier {
// The inner state of a double barrier
struct
BarrierState
{
priv
count
:
uint
,
priv
generation_id
:
uint
,
count
:
uint
,
generation_id
:
uint
,
}
impl
Barrier
{
...
...
src/librustc/middle/ty.rs
浏览文件 @
4d6836f4
...
...
@@ -257,7 +257,7 @@ pub enum AutoRef {
/// The data structure to keep track of all the information that typechecker
/// generates so that so that it can be reused and doesn't have to be redone
/// later on.
struct
ctxt_
{
pub
struct
ctxt_
{
diag
:
@
syntax
::
diagnostic
::
SpanHandler
,
interner
:
RefCell
<
HashMap
<
intern_key
,
~
t_box_
>>
,
next_id
:
Cell
<
uint
>
,
...
...
src/librustc/util/sha2.rs
浏览文件 @
4d6836f4
...
...
@@ -109,8 +109,8 @@ trait FixedBuffer {
/// A FixedBuffer of 64 bytes useful for implementing Sha256 which has a 64 byte blocksize.
struct
FixedBuffer64
{
priv
buffer
:
[
u8
,
..
64
],
priv
buffer_idx
:
uint
,
buffer
:
[
u8
,
..
64
],
buffer_idx
:
uint
,
}
impl
FixedBuffer64
{
...
...
src/librustpkg/package_source.rs
浏览文件 @
4d6836f4
...
...
@@ -78,8 +78,8 @@ fn prefixes(p: &Path) -> Prefixes {
}
struct
Prefixes
{
priv
components
:
~
[
~
str
],
priv
remaining
:
~
[
~
str
]
components
:
~
[
~
str
],
remaining
:
~
[
~
str
]
}
impl
Iterator
<
(
Path
,
Path
)
>
for
Prefixes
{
...
...
src/librustuv/homing.rs
浏览文件 @
4d6836f4
...
...
@@ -126,7 +126,7 @@ fn fire_homing_missile(&mut self) -> HomingMissile {
/// task back to its appropriate home (if applicable). The field is used to
/// assert that we are where we think we are.
struct
HomingMissile
{
priv
io_home
:
uint
,
io_home
:
uint
,
}
impl
HomingMissile
{
...
...
src/libstd/comm/select.rs
浏览文件 @
4d6836f4
...
...
@@ -95,7 +95,7 @@ pub struct Handle<'port, T> {
priv
port
:
&
'port
mut
Port
<
T
>
,
}
struct
Packets
{
priv
cur
:
*
mut
Packet
}
struct
Packets
{
cur
:
*
mut
Packet
}
impl
Select
{
/// Creates a new selection structure. This set is initially empty and
...
...
src/libsyntax/parse/parser.rs
浏览文件 @
4d6836f4
...
...
@@ -122,7 +122,7 @@ struct PathSegmentAndBoundSet {
}
/// A path paired with optional type bounds.
struct
PathAndBounds
{
pub
struct
PathAndBounds
{
path
:
ast
::
Path
,
bounds
:
Option
<
OptVec
<
TyParamBound
>>
,
}
...
...
src/test/auxiliary/iss.rs
浏览文件 @
4d6836f4
...
...
@@ -13,7 +13,7 @@
// part of issue-6919.rs
struct
C
<
'a
>
{
k
:
'a
||,
pub
k
:
'a
||,
}
fn
no_op
()
{
}
...
...
src/test/bench/shootout-meteor.rs
浏览文件 @
4d6836f4
...
...
@@ -18,8 +18,8 @@ fn iterate<'a, T>(x: T, f: 'a |&T| -> T) -> Iterate<'a, T> {
Iterate
{
f
:
f
,
next
:
x
}
}
struct
Iterate
<
'a
,
T
>
{
priv
f
:
'a
|
&
T
|
->
T
,
priv
next
:
T
f
:
'a
|
&
T
|
->
T
,
next
:
T
}
impl
<
'a
,
T
>
Iterator
<
T
>
for
Iterate
<
'a
,
T
>
{
fn
next
(
&
mut
self
)
->
Option
<
T
>
{
...
...
@@ -35,7 +35,7 @@ enum List<'a, T> {
Cons
(
T
,
&
'a
List
<
'a
,
T
>
)
}
struct
ListIterator
<
'a
,
T
>
{
priv
cur
:
&
'a
List
<
'a
,
T
>
cur
:
&
'a
List
<
'a
,
T
>
}
impl
<
'a
,
T
>
List
<
'a
,
T
>
{
fn
iter
(
&
'a
self
)
->
ListIterator
<
'a
,
T
>
{
...
...
src/test/compile-fail/lint-missing-doc.rs
浏览文件 @
4d6836f4
...
...
@@ -20,7 +20,7 @@
struct
Foo
{
a
:
int
,
priv
b
:
int
,
b
:
int
,
}
pub
struct
PubFoo
{
//~ ERROR: missing documentation
...
...
@@ -99,7 +99,7 @@ pub fn baz() {}
enum
Baz
{
BazA
{
a
:
int
,
priv
b
:
int
b
:
int
},
BarB
}
...
...
src/test/compile-fail/mutable-class-fields-2.rs
浏览文件 @
4d6836f4
...
...
@@ -9,7 +9,7 @@
// except according to those terms.
struct
cat
{
priv
meows
:
uint
,
meows
:
uint
,
how_hungry
:
int
,
}
...
...
src/test/compile-fail/mutable-class-fields.rs
浏览文件 @
4d6836f4
...
...
@@ -9,7 +9,7 @@
// except according to those terms.
struct
cat
{
priv
meows
:
uint
,
meows
:
uint
,
how_hungry
:
int
,
}
...
...
src/test/compile-fail/useless-priv.rs
浏览文件 @
4d6836f4
...
...
@@ -8,8 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
struct
A
{
pub
i
:
int
}
//~ ERROR: unnecessary `pub`
struct
B
{
priv
i
:
int
}
//
don't warn b/c B can still be returned
struct
A
{
pub
i
:
int
}
struct
B
{
priv
i
:
int
}
//
~ ERROR: unnecessary `priv`
pub
enum
C
{
pub
Variant
}
//~ ERROR: unnecessary `pub`
enum
D
{
priv
Variant2
}
//~ ERROR: unnecessary `priv`
...
...
src/test/run-pass/class-cast-to-trait-multiple-types.rs
浏览文件 @
4d6836f4
...
...
@@ -15,7 +15,7 @@ trait noisy {
}
struct
dog
{
priv
barks
:
uint
,
barks
:
uint
,
volume
:
int
,
}
...
...
@@ -50,7 +50,7 @@ fn dog() -> dog {
#[deriving(Clone)]
struct
cat
{
priv
meows
:
uint
,
meows
:
uint
,
how_hungry
:
int
,
name
:
~
str
,
...
...
src/test/run-pass/class-cast-to-trait.rs
浏览文件 @
4d6836f4
...
...
@@ -15,7 +15,7 @@ trait noisy {
}
struct
cat
{
priv
meows
:
uint
,
meows
:
uint
,
how_hungry
:
int
,
name
:
~
str
,
}
...
...
src/test/run-pass/class-impl-very-parameterized-trait.rs
浏览文件 @
4d6836f4
...
...
@@ -27,7 +27,7 @@ fn ne(&self, other: &cat_type) -> bool { !(*self).eq(other) }
// ok: T should be in scope when resolving the trait ref for map
struct
cat
<
T
>
{
// Yes, you can have negative meows
priv
meows
:
int
,
meows
:
int
,
how_hungry
:
int
,
name
:
T
,
...
...
src/test/run-pass/class-implement-trait-cross-crate.rs
浏览文件 @
4d6836f4
...
...
@@ -14,7 +14,7 @@
use
cci_class_trait
::
animals
::
noisy
;
struct
cat
{
priv
meows
:
uint
,
meows
:
uint
,
how_hungry
:
int
,
name
:
~
str
,
...
...
src/test/run-pass/class-implement-traits.rs
浏览文件 @
4d6836f4
...
...
@@ -16,7 +16,7 @@ trait noisy {
#[deriving(Clone)]
struct
cat
{
priv
meows
:
uint
,
meows
:
uint
,
how_hungry
:
int
,
name
:
~
str
,
...
...
src/test/run-pass/class-methods.rs
浏览文件 @
4d6836f4
...
...
@@ -9,7 +9,7 @@
// except according to those terms.
struct
cat
{
priv
meows
:
uint
,
meows
:
uint
,
how_hungry
:
int
,
}
...
...
src/test/run-pass/class-poly-methods.rs
浏览文件 @
4d6836f4
...
...
@@ -9,8 +9,8 @@
// except according to those terms.
struct
cat
<
U
>
{
priv
info
:
~
[
U
],
priv
meows
:
uint
,
info
:
~
[
U
],
meows
:
uint
,
how_hungry
:
int
,
}
...
...
src/test/run-pass/class-separate-impl.rs
浏览文件 @
4d6836f4
...
...
@@ -12,7 +12,7 @@
// xfail-fast
struct
cat
{
priv
meows
:
uint
,
meows
:
uint
,
how_hungry
:
int
,
name
:
~
str
,
...
...
src/test/run-pass/class-typarams.rs
浏览文件 @
4d6836f4
...
...
@@ -9,7 +9,7 @@
// except according to those terms.
struct
cat
<
U
>
{
priv
meows
:
uint
,
meows
:
uint
,
how_hungry
:
int
,
}
...
...
src/test/run-pass/classes-simple-method.rs
浏览文件 @
4d6836f4
...
...
@@ -9,7 +9,7 @@
// except according to those terms.
struct
cat
{
priv
meows
:
uint
,
meows
:
uint
,
how_hungry
:
int
,
}
...
...
src/test/run-pass/classes-simple.rs
浏览文件 @
4d6836f4
...
...
@@ -9,7 +9,7 @@
// except according to those terms.
struct
cat
{
priv
meows
:
uint
,
meows
:
uint
,
how_hungry
:
int
,
}
...
...
src/test/run-pass/classes.rs
浏览文件 @
4d6836f4
...
...
@@ -9,7 +9,7 @@
// except according to those terms.
struct
cat
{
priv
meows
:
uint
,
meows
:
uint
,
how_hungry
:
int
,
name
:
~
str
,
...
...
src/test/run-pass/issue-3563-3.rs
浏览文件 @
4d6836f4
...
...
@@ -47,8 +47,8 @@ struct Rect {
struct
AsciiArt
{
width
:
uint
,
height
:
uint
,
priv
fill
:
char
,
priv
lines
:
~
[
~
[
char
]],
fill
:
char
,
lines
:
~
[
~
[
char
]],
// This struct can be quite large so we'll disable copying: developers need
// to either pass these structs around via references or move them.
...
...
src/test/run-pass/private-class-field.rs
浏览文件 @
4d6836f4
...
...
@@ -9,7 +9,7 @@
// except according to those terms.
struct
cat
{
priv
meows
:
uint
,
meows
:
uint
,
how_hungry
:
int
,
}
...
...
src/test/run-pass/private-method.rs
浏览文件 @
4d6836f4
...
...
@@ -9,7 +9,7 @@
// except according to those terms.
struct
cat
{
priv
meows
:
uint
,
meows
:
uint
,
how_hungry
:
int
,
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录