Skip to content

Make --explain Handle Partial Error Codes #28872

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 8, 2015
Merged

Conversation

iwillspeak
Copy link
Contributor

Currently the explain command line flag requires full error codes, complete with
the leading zeros and the E at the beginning. This commit changes that,
if you don't supply a full error 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 just 1 to refer to the same error.

@rust-highfive
Copy link
Contributor

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Aatch (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@alexcrichton
Copy link
Member

r? @Manishearth

@rust-highfive rust-highfive assigned Manishearth and unassigned Aatch Oct 6, 2015
@Manishearth
Copy link
Member

@bors r+

Nice idea, thanks for the pull request!

@bors
Copy link
Collaborator

bors commented Oct 6, 2015

📌 Commit 185c3bb has been approved by Manishearth

@bors
Copy link
Collaborator

bors commented Oct 6, 2015

⌛ Testing commit 185c3bb with merge e553542...

@bors
Copy link
Collaborator

bors commented Oct 7, 2015

💔 Test failed - auto-mac-64-opt

@Manishearth
Copy link
Member

/Users/rustbuild/src/rust-buildbot/slave/auto-mac-64-opt/build/src/librustc_driver/lib.rs:288: trailing whitespace

@iwillspeak
Copy link
Contributor Author

Should I squash the whitespace cleanup into the other commit, or do you want me to leave it as two separate commits?

@Manishearth
Copy link
Member

Squash please

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.
@iwillspeak
Copy link
Contributor Author

Ok. Squashed.

@Manishearth
Copy link
Member

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Oct 8, 2015

📌 Commit 5d01556 has been approved by Manishearth

steveklabnik added a commit to steveklabnik/rust that referenced this pull request Oct 8, 2015
Currently the explain command line flag requires full error codes, complete with
the leading zeros and the E at the beginning. This commit changes that,
if you don't supply a full error 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 just 1 to refer to the same error.
steveklabnik added a commit to steveklabnik/rust that referenced this pull request Oct 8, 2015
Currently the explain command line flag requires full error codes, complete with
the leading zeros and the E at the beginning. This commit changes that,
if you don't supply a full error 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 just 1 to refer to the same error.
bors added a commit that referenced this pull request Oct 8, 2015
@bors bors merged commit 5d01556 into rust-lang:master Oct 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants