about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorWill Speak <lithiumflame@gmail.com>2015-10-06 21:15:04 +0100
committerWill Speak <will.speak@crispthinking.com>2015-10-07 11:59:51 +0100
commit5d015561836761e7a3d99e46dc91ccc7b6403e73 (patch)
tree9bc2a863b6ef4990d8d3bc15dfe7bbfb33fca314 /src/rustllvm/RustWrapper.cpp
parent799656311c72e8fd9cd7a84a3db8990cf5ef51e1 (diff)
downloadrust-5d015561836761e7a3d99e46dc91ccc7b6403e73.tar.gz
rust-5d015561836761e7a3d99e46dc91ccc7b6403e73.zip
Make `--explain` Handle Partial Error Codes
Currently the explain command requires full erorr codes, complete with
the leading zeros and the E at the beginning. This commit changes that,
if you don't supply a full erorr code then the error number is padded
out to the required size and the E is added to the beginning.

This means that where previously you would need to write E0001, you can
now write 0001, 001, 01 or jsut 1 to refer to the same error.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions