about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorKevin Ballard <kevin@sb.org>2013-09-16 18:02:33 -0700
committerKevin Ballard <kevin@sb.org>2013-09-16 18:55:56 -0700
commitb0647feab05057e8c8f232cdeb6fdceb9a62ad6c (patch)
tree20cb90bdeb9bf13e466512f5e596d9a0a82201dc /src/libsyntax/parse/parser.rs
parent0ec4d34b3f0fa1897ace96475a32ff0c8e15b33b (diff)
downloadrust-b0647feab05057e8c8f232cdeb6fdceb9a62ad6c.tar.gz
rust-b0647feab05057e8c8f232cdeb6fdceb9a62ad6c.zip
Limit spans in bytes!() error messages to the argument in question
This constrains the span to the appropriate argument, so you know which
one caused the problem. Instead of

  foo.rs:2:4: 2:21 error: Too large integer literal in bytes!
  foo.rs:2    bytes!(1, 256, 2)
              ^~~~~~~~~~~~~~~~~

it will say

  foo.rs:2:14 2:17 error: Too large integer literal in bytes!
  foo.rs:2    bytes!(1, 256, 2)
                        ^~~
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
0 files changed, 0 insertions, 0 deletions