diff options
| author | Mark Simulacrum <mark.simulacrum@gmail.com> | 2018-06-01 16:40:33 -0600 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-01-24 07:37:34 -0700 |
| commit | db97c48ad6e7f36468b152e9b08efc6f2f7da691 (patch) | |
| tree | 54ba10e3c9a82e3c57929586c30ab328687afd22 /src/libsyntax_ext | |
| parent | 6bba352cad2117f56353d400f71e96eafa2e6bd7 (diff) | |
| download | rust-db97c48ad6e7f36468b152e9b08efc6f2f7da691.tar.gz rust-db97c48ad6e7f36468b152e9b08efc6f2f7da691.zip | |
Remove quote_*! macros and associated APIs
Diffstat (limited to 'src/libsyntax_ext')
| -rw-r--r-- | src/libsyntax_ext/lib.rs | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/src/libsyntax_ext/lib.rs b/src/libsyntax_ext/lib.rs index 17996f23691..5e767d237cc 100644 --- a/src/libsyntax_ext/lib.rs +++ b/src/libsyntax_ext/lib.rs @@ -11,7 +11,6 @@ #![feature(decl_macro)] #![feature(nll)] #![feature(str_escape)] -#![feature(quote)] #![feature(rustc_diagnostic_macros)] #![recursion_limit="256"] @@ -58,8 +57,7 @@ use syntax::ext::hygiene; use syntax::symbol::Symbol; pub fn register_builtins(resolver: &mut dyn syntax::ext::base::Resolver, - user_exts: Vec<NamedSyntaxExtension>, - enable_quotes: bool) { + user_exts: Vec<NamedSyntaxExtension>) { deriving::register_builtin_derives(resolver); let mut register = |name, ext| { @@ -81,24 +79,6 @@ pub fn register_builtins(resolver: &mut dyn syntax::ext::base::Resolver, )* } } - if enable_quotes { - use syntax::ext::quote::*; - register! { - quote_tokens: expand_quote_tokens, - quote_expr: expand_quote_expr, - quote_ty: expand_quote_ty, - quote_item: expand_quote_item, - quote_pat: expand_quote_pat, - quote_arm: expand_quote_arm, - quote_stmt: expand_quote_stmt, - quote_attr: expand_quote_attr, - quote_arg: expand_quote_arg, - quote_block: expand_quote_block, - quote_meta_item: expand_quote_meta_item, - quote_path: expand_quote_path, - } - } - use syntax::ext::source_util::*; register! { line: expand_line, |
