diff options
| author | Taiki Endo <te316e89@gmail.com> | 2019-02-04 21:49:54 +0900 |
|---|---|---|
| committer | Taiki Endo <te316e89@gmail.com> | 2019-02-04 21:49:54 +0900 |
| commit | 94f121ff3f47fecdcf458b691f1bf87f8b1f1f1d (patch) | |
| tree | 2a4e8a892978ce007579a7f44e016a6303a50c65 /src/libsyntax_ext/proc_macro_decls.rs | |
| parent | e858c2637fa5bac40ac450628b30c56c2b4327b4 (diff) | |
| download | rust-94f121ff3f47fecdcf458b691f1bf87f8b1f1f1d.tar.gz rust-94f121ff3f47fecdcf458b691f1bf87f8b1f1f1d.zip | |
libsyntax_ext => 2018
Diffstat (limited to 'src/libsyntax_ext/proc_macro_decls.rs')
| -rw-r--r-- | src/libsyntax_ext/proc_macro_decls.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/libsyntax_ext/proc_macro_decls.rs b/src/libsyntax_ext/proc_macro_decls.rs index 46c502965ee..fbc4d899074 100644 --- a/src/libsyntax_ext/proc_macro_decls.rs +++ b/src/libsyntax_ext/proc_macro_decls.rs @@ -1,6 +1,7 @@ use std::mem; -use errors; +use crate::deriving; +use crate::errors; use syntax::ast::{self, Ident}; use syntax::attr; @@ -18,8 +19,6 @@ use syntax::visit::{self, Visitor}; use syntax_pos::{Span, DUMMY_SP}; -use deriving; - const PROC_MACRO_KINDS: [&str; 3] = ["proc_macro_derive", "proc_macro_attribute", "proc_macro"]; struct ProcMacroDerive { @@ -324,7 +323,7 @@ impl<'a> Visitor<'a> for CollectProcMacros<'a> { // ]; // } fn mk_decls( - cx: &mut ExtCtxt, + cx: &mut ExtCtxt<'_>, custom_derives: &[ProcMacroDerive], custom_attrs: &[ProcMacroDef], custom_macros: &[ProcMacroDef], |
