]> git.lizzy.rs Git - rust.git/commit
auto merge of #5890 : youknowone/rust/const-eval, r=catamorphism
authorbors <bors@rust-lang.org>
Tue, 16 Apr 2013 19:48:56 +0000 (12:48 -0700)
committerbors <bors@rust-lang.org>
Tue, 16 Apr 2013 19:48:56 +0000 (12:48 -0700)
commit07e087bf310e7e7911bf05efa36a2cdb57855a4e
treefad53032b663f39ae7f9f402e03ba2c5e8e2508c
parent7cacd87efd34f8b8c3c0db5e5b2192ddd32a6ec5
parent9b55d86e74112361c560e49ca28a8fc71964adb9
auto merge of #5890 : youknowone/rust/const-eval, r=catamorphism

This will help not to meet confusing errors.
In issue #5873, the error was "expected constant expr for vector length: Can't cast str to int".
It was originally "expected constant expr for vector length: Non-constant path in constant expr" (though still invalid error).
This patch make the original error to be printed.