diff options
| author | Nick Cameron <ncameron@mozilla.com> | 2015-09-01 13:16:03 +1200 |
|---|---|---|
| committer | Nick Cameron <ncameron@mozilla.com> | 2015-09-01 13:16:03 +1200 |
| commit | 20e1ea2dd84d5b29414059a4e07ce7327d1bef19 (patch) | |
| tree | 7f03d7977c2b89ed097d6a938db2e0260e06da2a /src/librustc/plugin | |
| parent | 8f28c9b01ee5ff7e73bb81b3364f26b6ad4060a2 (diff) | |
| download | rust-20e1ea2dd84d5b29414059a4e07ce7327d1bef19.tar.gz rust-20e1ea2dd84d5b29414059a4e07ce7327d1bef19.zip | |
Remove the Modifier and Decorator kinds of syntax extensions.
This is a [breaking-change] for syntax extension authors. The fix is to use MultiModifier or MultiDecorator, which have the same functionality but are more flexible. Users of syntax extensions are unaffected.
Diffstat (limited to 'src/librustc/plugin')
| -rw-r--r-- | src/librustc/plugin/registry.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/librustc/plugin/registry.rs b/src/librustc/plugin/registry.rs index 2f3625ff22f..e79721b4347 100644 --- a/src/librustc/plugin/registry.rs +++ b/src/librustc/plugin/registry.rs @@ -14,7 +14,7 @@ use lint::{LintPassObject, LintId, Lint}; use session::Session; use syntax::ext::base::{SyntaxExtension, NamedSyntaxExtension, NormalTT}; -use syntax::ext::base::{IdentTT, Decorator, Modifier, MultiModifier, MultiDecorator}; +use syntax::ext::base::{IdentTT, MultiModifier, MultiDecorator}; use syntax::ext::base::{MacroExpanderFn, MacroRulesTT}; use syntax::codemap::Span; use syntax::parse::token; @@ -98,9 +98,7 @@ impl<'a> Registry<'a> { IdentTT(ext, _, allow_internal_unstable) => { IdentTT(ext, Some(self.krate_span), allow_internal_unstable) } - Decorator(ext) => Decorator(ext), MultiDecorator(ext) => MultiDecorator(ext), - Modifier(ext) => Modifier(ext), MultiModifier(ext) => MultiModifier(ext), MacroRulesTT => { self.sess.err("plugin tried to register a new MacroRulesTT"); |
