Fix privacy fallout from previous change
This commit is contained in:
parent
31ac9c4288
commit
4d6836f418
32 changed files with 51 additions and 51 deletions
|
|
@ -13,7 +13,7 @@
|
|||
// part of issue-6919.rs
|
||||
|
||||
struct C<'a> {
|
||||
k: 'a ||,
|
||||
pub k: 'a ||,
|
||||
}
|
||||
|
||||
fn no_op() { }
|
||||
|
|
|
|||
|
|
@ -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> {
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
struct Foo {
|
||||
a: int,
|
||||
priv b: int,
|
||||
b: int,
|
||||
}
|
||||
|
||||
pub struct PubFoo { //~ ERROR: missing documentation
|
||||
|
|
@ -99,7 +99,7 @@ mod a {
|
|||
enum Baz {
|
||||
BazA {
|
||||
a: int,
|
||||
priv b: int
|
||||
b: int
|
||||
},
|
||||
BarB
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
// except according to those terms.
|
||||
|
||||
struct cat {
|
||||
priv meows : uint,
|
||||
meows : uint,
|
||||
|
||||
how_hungry : int,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
// except according to those terms.
|
||||
|
||||
struct cat {
|
||||
priv meows : uint,
|
||||
meows : uint,
|
||||
how_hungry : int,
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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`
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ trait noisy {
|
|||
}
|
||||
|
||||
struct cat {
|
||||
priv meows: uint,
|
||||
meows: uint,
|
||||
how_hungry: int,
|
||||
name: ~str,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ impl cmp::Eq for cat_type {
|
|||
// 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,
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ extern mod cci_class_trait;
|
|||
use cci_class_trait::animals::noisy;
|
||||
|
||||
struct cat {
|
||||
priv meows: uint,
|
||||
meows: uint,
|
||||
|
||||
how_hungry : int,
|
||||
name : ~str,
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ trait noisy {
|
|||
|
||||
#[deriving(Clone)]
|
||||
struct cat {
|
||||
priv meows : uint,
|
||||
meows : uint,
|
||||
|
||||
how_hungry : int,
|
||||
name : ~str,
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
// except according to those terms.
|
||||
|
||||
struct cat {
|
||||
priv meows : uint,
|
||||
meows : uint,
|
||||
|
||||
how_hungry : int,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
// xfail-fast
|
||||
struct cat {
|
||||
priv meows : uint,
|
||||
meows : uint,
|
||||
|
||||
how_hungry : int,
|
||||
name : ~str,
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
// except according to those terms.
|
||||
|
||||
struct cat<U> {
|
||||
priv meows : uint,
|
||||
meows : uint,
|
||||
|
||||
how_hungry : int,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
// except according to those terms.
|
||||
|
||||
struct cat {
|
||||
priv meows : uint,
|
||||
meows : uint,
|
||||
|
||||
how_hungry : int,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
// except according to those terms.
|
||||
|
||||
struct cat {
|
||||
priv meows : uint,
|
||||
meows : uint,
|
||||
|
||||
how_hungry : int,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
// except according to those terms.
|
||||
|
||||
struct cat {
|
||||
priv meows : uint,
|
||||
meows : uint,
|
||||
|
||||
how_hungry : int,
|
||||
name : ~str,
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
// except according to those terms.
|
||||
|
||||
struct cat {
|
||||
priv meows : uint,
|
||||
meows : uint,
|
||||
|
||||
how_hungry : int,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
// except according to those terms.
|
||||
|
||||
struct cat {
|
||||
priv meows : uint,
|
||||
meows : uint,
|
||||
|
||||
how_hungry : int,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue