1
Fork 0

librustc: Forbid pub or priv before trait implementations

This commit is contained in:
Patrick Walton 2013-02-26 17:12:00 -08:00
parent 573a31dfa7
commit 07c3f5c0de
67 changed files with 304 additions and 288 deletions

View file

@ -46,7 +46,7 @@ pub trait gen_init {
fn gen_init_bounded(&self, ext_cx: ext_ctxt) -> @ast::expr;
}
pub impl gen_send for message {
impl gen_send for message {
fn gen_send(&mut self, cx: ext_ctxt, try: bool) -> @ast::item {
debug!("pipec: gen_send");
let name = self.name();
@ -196,7 +196,7 @@ pub impl gen_send for message {
}
}
pub impl to_type_decls for state {
impl to_type_decls for state {
fn to_type_decls(&self, cx: ext_ctxt) -> ~[@ast::item] {
debug!("pipec: to_type_decls");
// This compiles into two different type declarations. Say the
@ -307,7 +307,7 @@ pub impl to_type_decls for state {
}
}
pub impl gen_init for protocol {
impl gen_init for protocol {
fn gen_init(&self, cx: ext_ctxt) -> @ast::item {
let ext_cx = cx;