commit | 9a4dca26c9e8ff52e5b9f226b36beb2fd2018503 | [log] [tgz] |
---|---|---|
author | Alex Crichton <alex@alexcrichton.com> | Wed Mar 28 06:32:19 2018 -0700 |
committer | David Tolnay <dtolnay@gmail.com> | Sat Mar 31 16:55:52 2018 +0200 |
tree | 06c724c7c80cbe5419336bc78c27d831b2eb264e | |
parent | 826fee0d8968cd4d0168cfb7d19e4a1e7d2f5227 [diff] [blame] |
Update to proc-macro2 0.3 and tweak apis
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 }} }}