about summary refs log tree commit diff
path: root/src/libsyntax_ext
diff options
context:
space:
mode:
authorMark Simulacrum <mark.simulacrum@gmail.com>2017-07-29 18:03:52 -0600
committerGitHub <noreply@github.com>2017-07-29 18:03:52 -0600
commite61e73fcc41a09d1d955169fa7ea5b0be65c1fcb (patch)
tree3e77da27cf8b181fc2fae87a5ca7afe49254c069 /src/libsyntax_ext
parentf205f48a00fc710bac8b181ee720f2807314d7e3 (diff)
parent6375b77ebb640001e9d076eec8601d926d2543f7 (diff)
downloadrust-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_ext')
-rw-r--r--src/libsyntax_ext/deriving/generic/ty.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsyntax_ext/deriving/generic/ty.rs b/src/libsyntax_ext/deriving/generic/ty.rs
index 9c89f99cbb5..f5ac1743920 100644
--- a/src/libsyntax_ext/deriving/generic/ty.rs
+++ b/src/libsyntax_ext/deriving/generic/ty.rs
@@ -216,6 +216,7 @@ fn mk_generics(lifetimes: Vec<ast::LifetimeDef>, ty_params: Vec<ast::TyParam>, s
         where_clause: ast::WhereClause {
             id: ast::DUMMY_NODE_ID,
             predicates: Vec::new(),
+            span: span,
         },
         span: span,
     }