librustc: Mark all type implementations public. rs=impl-publicity

This commit is contained in:
Patrick Walton 2013-02-26 17:47:41 -08:00
parent b171d0ef7b
commit 107bf96ff0
114 changed files with 175 additions and 175 deletions

View file

@ -174,7 +174,7 @@ pub struct IndexEntry {
link: ~str
}
impl Doc {
pub impl Doc {
fn CrateDoc(&self) -> CrateDoc {
option::get(vec::foldl(None, self.pages, |_m, page| {
match copy *page {
@ -190,7 +190,7 @@ impl Doc {
}
/// Some helper methods on ModDoc, mostly for testing
impl ModDoc {
pub impl ModDoc {
fn mods(&self) -> ~[ModDoc] {
do vec::filter_mapped(self.items) |itemtag| {
match copy *itemtag {

View file

@ -51,7 +51,7 @@ fn test() {
fn ifn() { } \
enum ienum { ivar } \
trait itrait { fn a(); } \
impl int { fn a() { } } \
pub impl int { fn a() { } } \
type itype = int; \
struct istruct { f: () }";
do astsrv::from_str(source) |srv| {