]> git.lizzy.rs Git - rust.git/commit
syntax: put the correct span on doc-comments inside a module.
authorHuon Wilson <dbau.pp+github@gmail.com>
Thu, 22 May 2014 12:55:48 +0000 (22:55 +1000)
committerHuon Wilson <dbau.pp+github@gmail.com>
Thu, 22 May 2014 12:58:14 +0000 (22:58 +1000)
commitd3fde8476b9cdce734dcec6b2003a482c5908235
tree7b526f49487c5cff605b39377b55bfe878d3508a
parent37bd466e5898da17f474628461abdd023c4d6a4d
syntax: put the correct span on doc-comments inside a module.

The position of the .bump call (before extracting the span fields) was
causing a doc-comment to have the span of the next token, not itself.
src/libsyntax/parse/attr.rs