about summary refs log tree commit diff
path: root/src/libsyntax_ext
diff options
context:
space:
mode:
authorNick Cameron <ncameron@mozilla.com>2016-09-06 17:57:58 +1200
committerNick Cameron <ncameron@mozilla.com>2016-09-23 07:19:31 +1200
commit3863834d9c75230224e36783780d260f52e10d49 (patch)
treecd33399603c779cc68c7c399ff2433ccc05e1154 /src/libsyntax_ext
parent6a2d2c949581c710eeb505000e56ffa1e5a860b5 (diff)
downloadrust-3863834d9c75230224e36783780d260f52e10d49.tar.gz
rust-3863834d9c75230224e36783780d260f52e10d49.zip
reviewer comments and rebasing
Diffstat (limited to 'src/libsyntax_ext')
-rw-r--r--src/libsyntax_ext/deriving/custom.rs13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/libsyntax_ext/deriving/custom.rs b/src/libsyntax_ext/deriving/custom.rs
index 465fc0016e5..624fabd1424 100644
--- a/src/libsyntax_ext/deriving/custom.rs
+++ b/src/libsyntax_ext/deriving/custom.rs
@@ -15,7 +15,7 @@ use rustc_macro::{TokenStream, __internal};
 use syntax::ast::{self, ItemKind};
 use syntax::codemap::{ExpnInfo, MacroAttribute, NameAndSpan, Span};
 use syntax::ext::base::*;
-use syntax::fold::{self, Folder};
+use syntax::fold::Folder;
 use syntax::parse::token::intern;
 use syntax::print::pprust;
 
@@ -97,14 +97,3 @@ impl MultiItemModifier for CustomDerive {
     }
 }
 
-struct ChangeSpan { span: Span }
-
-impl Folder for ChangeSpan {
-    fn new_span(&mut self, _sp: Span) -> Span {
-        self.span
-    }
-
-    fn fold_mac(&mut self, mac: ast::Mac) -> ast::Mac {
-        fold::noop_fold_mac(mac, self)
-    }
-}