diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-08-09 01:25:24 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-08-12 23:20:46 -0700 |
| commit | 930885d5e5f817e3d7609f93d5ba89b1abebfaf4 (patch) | |
| tree | 16719bb119d7e3f0aa056d4c3391d6e968bd1198 /src/libsyntax/ext | |
| parent | 44675ac6aff91889f960655b0034964740415e8c (diff) | |
| download | rust-930885d5e5f817e3d7609f93d5ba89b1abebfaf4.tar.gz rust-930885d5e5f817e3d7609f93d5ba89b1abebfaf4.zip | |
Forbid pub/priv where it has no effect
Closes #5495
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/deriving/generic.rs | 2 | ||||
| -rw-r--r-- | src/libsyntax/ext/quote.rs | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/libsyntax/ext/deriving/generic.rs b/src/libsyntax/ext/deriving/generic.rs index a1abe47e090..6b028e25c0f 100644 --- a/src/libsyntax/ext/deriving/generic.rs +++ b/src/libsyntax/ext/deriving/generic.rs @@ -542,7 +542,7 @@ impl<'self> MethodDef<'self> { id: cx.next_id(), span: span, self_id: cx.next_id(), - vis: ast::public + vis: ast::inherited, } } diff --git a/src/libsyntax/ext/quote.rs b/src/libsyntax/ext/quote.rs index d218be5e476..9d82bb9c4f8 100644 --- a/src/libsyntax/ext/quote.rs +++ b/src/libsyntax/ext/quote.rs @@ -40,11 +40,11 @@ pub mod rt { pub use codemap::{BytePos, span, dummy_spanned}; pub trait ToTokens { - pub fn to_tokens(&self, _cx: @ExtCtxt) -> ~[token_tree]; + fn to_tokens(&self, _cx: @ExtCtxt) -> ~[token_tree]; } impl ToTokens for ~[token_tree] { - pub fn to_tokens(&self, _cx: @ExtCtxt) -> ~[token_tree] { + fn to_tokens(&self, _cx: @ExtCtxt) -> ~[token_tree] { (*self).clone() } } @@ -65,7 +65,7 @@ pub mod rt { pub trait ToSource { // Takes a thing and generates a string containing rust code for it. - pub fn to_source(&self) -> @str; + fn to_source(&self) -> @str; } impl ToSource for ast::ident { |
