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/deriving/bounds.rs | |
| parent | e858c2637fa5bac40ac450628b30c56c2b4327b4 (diff) | |
| download | rust-94f121ff3f47fecdcf458b691f1bf87f8b1f1f1d.tar.gz rust-94f121ff3f47fecdcf458b691f1bf87f8b1f1f1d.zip | |
libsyntax_ext => 2018
Diffstat (limited to 'src/libsyntax_ext/deriving/bounds.rs')
| -rw-r--r-- | src/libsyntax_ext/deriving/bounds.rs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/libsyntax_ext/deriving/bounds.rs b/src/libsyntax_ext/deriving/bounds.rs index dcfc6ab0391..c7b805e0bdc 100644 --- a/src/libsyntax_ext/deriving/bounds.rs +++ b/src/libsyntax_ext/deriving/bounds.rs @@ -1,11 +1,12 @@ -use deriving::path_std; -use deriving::generic::*; -use deriving::generic::ty::*; +use crate::deriving::path_std; +use crate::deriving::generic::*; +use crate::deriving::generic::ty::*; + use syntax::ast::MetaItem; use syntax::ext::base::{Annotatable, ExtCtxt}; use syntax_pos::Span; -pub fn expand_deriving_unsafe_bound(cx: &mut ExtCtxt, +pub fn expand_deriving_unsafe_bound(cx: &mut ExtCtxt<'_>, span: Span, _: &MetaItem, _: &Annotatable, @@ -13,7 +14,7 @@ pub fn expand_deriving_unsafe_bound(cx: &mut ExtCtxt, cx.span_err(span, "this unsafe trait should be implemented explicitly"); } -pub fn expand_deriving_copy(cx: &mut ExtCtxt, +pub fn expand_deriving_copy(cx: &mut ExtCtxt<'_>, span: Span, mitem: &MetaItem, item: &Annotatable, |
