Skip to content

Commit d0a80cc

Browse files
committed
rpass/cfail: Update field privacy where necessary
1 parent 0b36e9d commit d0a80cc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+76
-80
lines changed

src/test/auxiliary/anon_trait_static_method_lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
pub struct Foo {
12-
x: int
12+
pub x: int
1313
}
1414

1515
impl Foo {

src/test/auxiliary/cci_class.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010

1111
pub mod kitties {
1212
pub struct cat {
13-
priv meows : uint,
13+
meows : uint,
1414

15-
how_hungry : int,
15+
pub how_hungry : int,
1616
}
1717

1818
pub fn cat(in_x : uint, in_y : int) -> cat {

src/test/auxiliary/cci_class_2.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010

1111
pub mod kitties {
1212
pub struct cat {
13-
priv meows : uint,
13+
meows : uint,
1414

15-
how_hungry : int,
15+
pub how_hungry : int,
1616

1717
}
1818

src/test/auxiliary/cci_class_3.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010

1111
pub mod kitties {
1212
pub struct cat {
13-
priv meows : uint,
13+
meows : uint,
1414

15-
how_hungry : int,
15+
pub how_hungry : int,
1616
}
1717

1818
impl cat {

src/test/auxiliary/cci_class_4.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010

1111
pub mod kitties {
1212
pub struct cat {
13-
priv meows : uint,
13+
meows : uint,
1414

15-
how_hungry : int,
16-
name : ~str,
15+
pub how_hungry : int,
16+
pub name : ~str,
1717
}
1818

1919
impl cat {

src/test/auxiliary/cci_class_5.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
pub mod kitties {
1212
pub struct cat {
13-
priv meows : uint,
14-
how_hungry : int,
13+
meows : uint,
14+
pub how_hungry : int,
1515
}
1616

1717
impl cat {

src/test/auxiliary/cci_class_6.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
pub mod kitties {
1212

1313
pub struct cat<U> {
14-
priv info : Vec<U> ,
15-
priv meows : uint,
14+
info : Vec<U> ,
15+
meows : uint,
1616

17-
how_hungry : int,
17+
pub how_hungry : int,
1818
}
1919

2020
impl<U> cat<U> {

src/test/auxiliary/cci_class_cast.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ pub mod kitty {
1212
use std::fmt;
1313

1414
pub struct cat {
15-
priv meows : uint,
16-
how_hungry : int,
17-
name : ~str,
15+
meows : uint,
16+
pub how_hungry : int,
17+
pub name : ~str,
1818
}
1919

2020
impl fmt::Show for cat {

src/test/auxiliary/crateresolve5-1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
#[crate_type = "lib"];
1414

15-
pub struct NameVal { name: ~str, val: int }
15+
pub struct NameVal { pub name: ~str, pub val: int }
1616

1717
pub fn struct_nameval() -> NameVal {
1818
NameVal { name: ~"crateresolve5", val: 10 }

src/test/auxiliary/crateresolve5-2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
#[crate_type = "lib"];
1414

15-
pub struct NameVal { name: ~str, val: int }
15+
pub struct NameVal { pub name: ~str, pub val: int }
1616
pub fn struct_nameval() -> NameVal {
1717
NameVal { name: ~"crateresolve5", val: 10 }
1818
}

0 commit comments

Comments
 (0)