mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-26 06:35:27 +00:00
Fix more priv fallout
This commit is contained in:
parent
86d581f83b
commit
878e74e1ce
@ -2288,8 +2288,8 @@ pub mod farm {
|
||||
}
|
||||
|
||||
impl Farm {
|
||||
priv fn feed_chickens(&self) { ... }
|
||||
priv fn feed_cows(&self) { ... }
|
||||
fn feed_chickens(&self) { ... }
|
||||
fn feed_cows(&self) { ... }
|
||||
pub fn add_chicken(&self, c: Chicken) { ... }
|
||||
}
|
||||
|
||||
|
@ -202,7 +202,7 @@ mod test {
|
||||
let doc = mk_doc(
|
||||
~"impl Foo {\
|
||||
pub fn bar() { }\
|
||||
priv fn baz() { }\
|
||||
fn baz() { }\
|
||||
}");
|
||||
assert_eq!(doc.cratemod().impls()[0].methods.len(), 1);
|
||||
}
|
||||
@ -212,7 +212,7 @@ mod test {
|
||||
let doc = mk_doc(
|
||||
~"impl Foo {\
|
||||
pub fn bar() { }\
|
||||
priv fn baz() { }\
|
||||
fn baz() { }\
|
||||
}");
|
||||
assert_eq!(doc.cratemod().impls()[0].methods.len(), 1);
|
||||
}
|
||||
@ -232,7 +232,7 @@ mod test {
|
||||
let doc = mk_doc(
|
||||
~"impl Foo {\
|
||||
pub fn bar() { }\
|
||||
priv fn baz() { }\
|
||||
fn baz() { }\
|
||||
}");
|
||||
assert_eq!(doc.cratemod().impls()[0].methods.len(), 1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user