diff options
| author | bors <bors@rust-lang.org> | 2013-02-28 12:45:49 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-02-28 12:45:49 -0800 |
| commit | e1d3a4fb3e2f5b165142adc382de1b226eb688f7 (patch) | |
| tree | 6fe22be7c7b742fc4de6aee8c45cbc011efb181b /src/libsyntax | |
| parent | b171d0ef7b68fed961597d38e6a474d748243987 (diff) | |
| parent | 2859c1ac6d760876282471ae57fee2e5731f85d5 (diff) | |
| download | rust-e1d3a4fb3e2f5b165142adc382de1b226eb688f7.tar.gz rust-e1d3a4fb3e2f5b165142adc382de1b226eb688f7.zip | |
auto merge of #5156 : pcwalton/rust/method-privacy, r=pcwalton
r? @brson
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ast.rs | 2 | ||||
| -rw-r--r-- | src/libsyntax/ext/deriving.rs | 2 |
2 files changed, 2 insertions, 2 deletions
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<TyParam> } -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, |
