Update to proc-macro2 0.3 and tweak apis
diff --git a/codegen/Cargo.toml b/codegen/Cargo.toml
index 93ebe16..db4c2a6 100644
--- a/codegen/Cargo.toml
+++ b/codegen/Cargo.toml
@@ -7,7 +7,8 @@
 
 [dependencies]
 syn = { path = "..", features = ["full", "extra-traits"] }
-quote = "0.4"
+#quote = "0.5"
+quote = { git = 'https://github.com/dtolnay/quote' }
 failure = "0.1"
 inflections = "1.1"
-proc-macro2 = "0.2"
+proc-macro2 = "0.3"
diff --git a/codegen/src/main.rs b/codegen/src/main.rs
index ac02cbc..ac5a426 100644
--- a/codegen/src/main.rs
+++ b/codegen/src/main.rs
@@ -1035,7 +1035,8 @@
 macro_rules! fold_span_only {{
     ($f:ident : $t:ident) => {{
         pub fn $f<V: Fold + ?Sized>(_visitor: &mut V, mut _i: $t) -> $t {{
-            _i.span = _visitor.fold_span(_i.span);
+            let span = _visitor.fold_span(_i.span());
+            _i.set_span(span);
             _i
         }}
     }}