Switch some tuple structs to pub fields
This commit deals with the fallout of the previous change by making tuples structs have public fields where necessary (now that the fields are private by default).
This commit is contained in:
parent
683197975c
commit
922dcfdc69
25 changed files with 56 additions and 48 deletions
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
pub struct Closed01<F>(F);
|
||||
pub struct Closed01<F>(pub F);
|
||||
|
||||
pub trait Bar { fn new() -> Self; }
|
||||
|
||||
|
|
|
|||
|
|
@ -8,4 +8,4 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
pub struct A<'a>(&'a int);
|
||||
pub struct A<'a>(pub &'a int);
|
||||
|
|
|
|||
|
|
@ -8,4 +8,4 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
pub struct V2<T>(T, T);
|
||||
pub struct V2<T>(pub T, pub T);
|
||||
|
|
|
|||
|
|
@ -8,4 +8,4 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
pub struct Wrap<A>(A);
|
||||
pub struct Wrap<A>(pub A);
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
// except according to those terms.
|
||||
|
||||
|
||||
pub struct S(());
|
||||
pub struct S(pub ());
|
||||
|
||||
impl S {
|
||||
pub fn foo(&self) { }
|
||||
|
|
|
|||
|
|
@ -161,15 +161,15 @@ pub enum Enum {
|
|||
}
|
||||
|
||||
#[deprecated]
|
||||
pub struct DeprecatedTupleStruct(int);
|
||||
pub struct DeprecatedTupleStruct(pub int);
|
||||
#[experimental]
|
||||
pub struct ExperimentalTupleStruct(int);
|
||||
pub struct ExperimentalTupleStruct(pub int);
|
||||
#[unstable]
|
||||
pub struct UnstableTupleStruct(int);
|
||||
pub struct UnmarkedTupleStruct(int);
|
||||
pub struct UnstableTupleStruct(pub int);
|
||||
pub struct UnmarkedTupleStruct(pub int);
|
||||
#[stable]
|
||||
pub struct StableTupleStruct(int);
|
||||
pub struct StableTupleStruct(pub int);
|
||||
#[frozen]
|
||||
pub struct FrozenTupleStruct(int);
|
||||
pub struct FrozenTupleStruct(pub int);
|
||||
#[locked]
|
||||
pub struct LockedTupleStruct(int);
|
||||
pub struct LockedTupleStruct(pub int);
|
||||
|
|
|
|||
|
|
@ -10,4 +10,4 @@
|
|||
|
||||
#[crate_type="lib"];
|
||||
|
||||
pub struct Au(int);
|
||||
pub struct Au(pub int);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue