]> git.lizzy.rs Git - rust.git/commit
auto merge of #18160 : koshlo/rust/to-source-fix, r=alexcrichton
authorbors <bors@rust-lang.org>
Sun, 19 Oct 2014 23:32:07 +0000 (23:32 +0000)
committerbors <bors@rust-lang.org>
Sun, 19 Oct 2014 23:32:07 +0000 (23:32 +0000)
commitaff4f11cddadae56fe26980329b610066eb487b0
tree1585802a9faaf2ada99741fc8eb1cc5aed469295
parent5cba29d3343ee17b28d39c8d675aa0980d0c5b9c
parent49ec356c601b3c2fb6ff78df9e22786ec93d34f8
auto merge of #18160 : koshlo/rust/to-source-fix, r=alexcrichton

Fix for issue #18091

The problem seems to be that `ast_util::int_ty_to_string` takes unsigned number, and no one adds `-` to result string. I've fixed it by putting `-` before result string using `format!`.

I've also added `test_signed_int_to_string()` to check if implementation is valid.