about summary refs log tree commit diff
path: root/src/libsyntax/ast.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/ast.rs
parent7ac11cad3fe85163dd8b0ca1f63af492509f9bfe (diff)
downloadrust-59481823675a7392e8160b659b0f7fa119df60fd.tar.gz
rust-59481823675a7392e8160b659b0f7fa119df60fd.zip
Add Span field for Generics structs
Diffstat (limited to 'src/libsyntax/ast.rs')
-rw-r--r--src/libsyntax/ast.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs
index f8a5cb0b04a..968956d3391 100644
--- a/src/libsyntax/ast.rs
+++ b/src/libsyntax/ast.rs
@@ -336,7 +336,7 @@ pub struct TyParam {
     pub id: NodeId,
     pub bounds: TyParamBounds,
     pub default: Option<P<Ty>>,
-    pub span: Span
+    pub span: Span,
 }
 
 /// Represents lifetimes and type parameters attached to a declaration
@@ -346,6 +346,7 @@ pub struct Generics {
     pub lifetimes: Vec<LifetimeDef>,
     pub ty_params: P<[TyParam]>,
     pub where_clause: WhereClause,
+    pub span: Span,
 }
 
 impl Generics {
@@ -368,7 +369,8 @@ impl Default for Generics {
             where_clause: WhereClause {
                 id: DUMMY_NODE_ID,
                 predicates: Vec::new(),
-            }
+            },
+            span: DUMMY_SP,
         }
     }
 }