about summary refs log tree commit diff
path: root/src/libsyntax/fold.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2016-08-10 19:39:12 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2016-08-18 18:23:36 +0200
commit59481823675a7392e8160b659b0f7fa119df60fd (patch)
tree01405802c217ec5d3d8aa6c2dd9cd46e95c6fdda /src/libsyntax/fold.rs
parent7ac11cad3fe85163dd8b0ca1f63af492509f9bfe (diff)
downloadrust-59481823675a7392e8160b659b0f7fa119df60fd.tar.gz
rust-59481823675a7392e8160b659b0f7fa119df60fd.zip
Add Span field for Generics structs
Diffstat (limited to 'src/libsyntax/fold.rs')
-rw-r--r--src/libsyntax/fold.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsyntax/fold.rs b/src/libsyntax/fold.rs
index b257ab98987..c566aa5661b 100644
--- a/src/libsyntax/fold.rs
+++ b/src/libsyntax/fold.rs
@@ -698,12 +698,13 @@ pub fn noop_fold_opt_lifetime<T: Folder>(o_lt: Option<Lifetime>, fld: &mut T)
     o_lt.map(|lt| fld.fold_lifetime(lt))
 }
 
-pub fn noop_fold_generics<T: Folder>(Generics {ty_params, lifetimes, where_clause}: Generics,
+pub fn noop_fold_generics<T: Folder>(Generics {ty_params, lifetimes, where_clause, span}: Generics,
                                      fld: &mut T) -> Generics {
     Generics {
         ty_params: fld.fold_ty_params(ty_params),
         lifetimes: fld.fold_lifetime_defs(lifetimes),
         where_clause: fld.fold_where_clause(where_clause),
+        span: fld.new_span(span),
     }
 }