about summary refs log tree commit diff
path: root/src/libsyntax_ext/deriving/bounds.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsyntax_ext/deriving/bounds.rs')
-rw-r--r--src/libsyntax_ext/deriving/bounds.rs16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/libsyntax_ext/deriving/bounds.rs b/src/libsyntax_ext/deriving/bounds.rs
index 6a9b7092024..9793ac1ca08 100644
--- a/src/libsyntax_ext/deriving/bounds.rs
+++ b/src/libsyntax_ext/deriving/bounds.rs
@@ -1,16 +1,18 @@
-use crate::deriving::path_std;
-use crate::deriving::generic::*;
 use crate::deriving::generic::ty::*;
+use crate::deriving::generic::*;
+use crate::deriving::path_std;
 
 use syntax::ast::MetaItem;
 use syntax_expand::base::{Annotatable, ExtCtxt};
 use syntax_pos::Span;
 
-pub fn expand_deriving_copy(cx: &mut ExtCtxt<'_>,
-                            span: Span,
-                            mitem: &MetaItem,
-                            item: &Annotatable,
-                            push: &mut dyn FnMut(Annotatable)) {
+pub fn expand_deriving_copy(
+    cx: &mut ExtCtxt<'_>,
+    span: Span,
+    mitem: &MetaItem,
+    item: &Annotatable,
+    push: &mut dyn FnMut(Annotatable),
+) {
     let trait_def = TraitDef {
         span,
         attributes: Vec::new(),