Fix privacy fallout from previous change

This commit is contained in:
Alex Crichton 2014-01-24 11:02:03 -08:00
parent 31ac9c4288
commit 4d6836f418
32 changed files with 51 additions and 51 deletions

View file

@ -13,7 +13,7 @@
// part of issue-6919.rs
struct C<'a> {
k: 'a ||,
pub k: 'a ||,
}
fn no_op() { }

View file

@ -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> {

View file

@ -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
}

View file

@ -9,7 +9,7 @@
// except according to those terms.
struct cat {
priv meows : uint,
meows : uint,
how_hungry : int,
}

View file

@ -9,7 +9,7 @@
// except according to those terms.
struct cat {
priv meows : uint,
meows : uint,
how_hungry : int,
}

View file

@ -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`

View file

@ -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,

View file

@ -15,7 +15,7 @@ trait noisy {
}
struct cat {
priv meows: uint,
meows: uint,
how_hungry: int,
name: ~str,
}

View file

@ -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,

View file

@ -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,

View file

@ -16,7 +16,7 @@ trait noisy {
#[deriving(Clone)]
struct cat {
priv meows : uint,
meows : uint,
how_hungry : int,
name : ~str,

View file

@ -9,7 +9,7 @@
// except according to those terms.
struct cat {
priv meows : uint,
meows : uint,
how_hungry : int,
}

View file

@ -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,
}

View file

@ -12,7 +12,7 @@
// xfail-fast
struct cat {
priv meows : uint,
meows : uint,
how_hungry : int,
name : ~str,

View file

@ -9,7 +9,7 @@
// except according to those terms.
struct cat<U> {
priv meows : uint,
meows : uint,
how_hungry : int,
}

View file

@ -9,7 +9,7 @@
// except according to those terms.
struct cat {
priv meows : uint,
meows : uint,
how_hungry : int,
}

View file

@ -9,7 +9,7 @@
// except according to those terms.
struct cat {
priv meows : uint,
meows : uint,
how_hungry : int,
}

View file

@ -9,7 +9,7 @@
// except according to those terms.
struct cat {
priv meows : uint,
meows : uint,
how_hungry : int,
name : ~str,

View file

@ -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.

View file

@ -9,7 +9,7 @@
// except according to those terms.
struct cat {
priv meows : uint,
meows : uint,
how_hungry : int,
}

View file

@ -9,7 +9,7 @@
// except according to those terms.
struct cat {
priv meows : uint,
meows : uint,
how_hungry : int,
}