diff options
| author | Mark Simulacrum <mark.simulacrum@gmail.com> | 2017-07-29 18:03:52 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-07-29 18:03:52 -0600 |
| commit | e61e73fcc41a09d1d955169fa7ea5b0be65c1fcb (patch) | |
| tree | 3e77da27cf8b181fc2fae87a5ca7afe49254c069 /src/libsyntax/ast.rs | |
| parent | f205f48a00fc710bac8b181ee720f2807314d7e3 (diff) | |
| parent | 6375b77ebb640001e9d076eec8601d926d2543f7 (diff) | |
| download | rust-e61e73fcc41a09d1d955169fa7ea5b0be65c1fcb.tar.gz rust-e61e73fcc41a09d1d955169fa7ea5b0be65c1fcb.zip | |
Rollup merge of #43501 - topecongiro:span-to-whereclause, r=nrc
Add Span to ast::WhereClause This PR adds `Span` field to `ast::WhereClause`. The motivation here is to make rustfmt's life easier when recovering comments before and after where clause. r? @nrc
Diffstat (limited to 'src/libsyntax/ast.rs')
| -rw-r--r-- | src/libsyntax/ast.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs index fb791541524..ad4a984cfd9 100644 --- a/src/libsyntax/ast.rs +++ b/src/libsyntax/ast.rs @@ -336,6 +336,7 @@ impl Default for Generics { where_clause: WhereClause { id: DUMMY_NODE_ID, predicates: Vec::new(), + span: DUMMY_SP, }, span: DUMMY_SP, } @@ -347,6 +348,7 @@ impl Default for Generics { pub struct WhereClause { pub id: NodeId, pub predicates: Vec<WherePredicate>, + pub span: Span, } /// A single predicate in a `where` clause |
