]> git.lizzy.rs Git - rust.git/commit
auto merge of #9245 : kballard/rust/bytes-span, r=catamorphism
authorbors <bors@rust-lang.org>
Tue, 17 Sep 2013 15:45:44 +0000 (08:45 -0700)
committerbors <bors@rust-lang.org>
Tue, 17 Sep 2013 15:45:44 +0000 (08:45 -0700)
commit72e7c62ec4ecddadeccb928ac488a8715d80aef7
treecffb38564b51057038da02fb36aac593de4ea8b5
parent29cdf58861b1054c899c911343ccd8b1af28151a
parentb0647feab05057e8c8f232cdeb6fdceb9a62ad6c
auto merge of #9245 : kballard/rust/bytes-span, r=catamorphism

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)
                          ^~~