From 107bf96ff0dcc427c1842ffb232d29afaea53ca5 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Tue, 26 Feb 2013 17:47:41 -0800 Subject: librustc: Mark all type implementations public. rs=impl-publicity --- src/libsyntax/ast.rs | 2 +- src/libsyntax/ext/deriving.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libsyntax') diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs index f97244c477b..c6994125b26 100644 --- a/src/libsyntax/ast.rs +++ b/src/libsyntax/ast.rs @@ -162,7 +162,7 @@ pub struct Generics { ty_params: OptVec } -impl Generics { +pub impl Generics { fn is_empty(&self) -> bool { self.lifetimes.len() + self.ty_params.len() == 0 } diff --git a/src/libsyntax/ext/deriving.rs b/src/libsyntax/ext/deriving.rs index 0164f807f4b..7820bb5e964 100644 --- a/src/libsyntax/ext/deriving.rs +++ b/src/libsyntax/ext/deriving.rs @@ -38,7 +38,7 @@ enum Junction { Disjunction, } -impl Junction { +pub impl Junction { fn to_binop(self) -> binop { match self { Conjunction => and, -- cgit 1.4.1-3-g733a5