diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-11-12 15:12:20 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-11-12 16:21:39 -0800 |
| commit | 4c680849638b548e7202ebe4cbce2c86fd65519a (patch) | |
| tree | ec1071213df45eb85c6bb3a03d02e58238fa1ec9 /src/libsyntax/parse | |
| parent | f05e2da709cca3b20e560eaf2e05d73c0ca5d91b (diff) | |
| download | rust-4c680849638b548e7202ebe4cbce2c86fd65519a.tar.gz rust-4c680849638b548e7202ebe4cbce2c86fd65519a.zip | |
Convert most codemap types from records to structs
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 2b42dcc0ed0..9df6b7ab5d2 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -3415,9 +3415,8 @@ impl Parser { |p| p.parse_token_tree()); let m = ast::mac_invoc_tt(pth, tts); let m: ast::mac = {node: m, - span: {lo: self.span.lo, - hi: self.span.hi, - expn_info: None}}; + span: mk_sp(self.span.lo, + self.span.hi)}; let item_ = item_mac(m); return iovi_item(self.mk_item(lo, self.last_span.hi, id, item_, visibility, attrs)); |
