Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

Warn users when fixes break code #93

Merged
merged 2 commits into from
May 6, 2018

Conversation

alexcrichton
Copy link
Member

The rustfix tool detects it, so let's inform the user what just happened!

Closes #88

alexcrichton and others added 2 commits May 5, 2018 21:37
The rustfix tool detects it, so let's inform the user what just happened!

Closes rust-lang#88
This omits the reference to gist (which may confuse people not familiar
with gist.github.com), and moves the link to our issue tracker to its
own line, which makes copying easier (for those whose terminals don't
have a "ctrl+click to open link" feature).
"This likely indicates a bug in either rustc or rustfix itself,\n\
and we would appreciate a bug report! You're likely to see \n\
a number of compiler warnings after this message which rustfix\n\
attempted to fix but failed. If you could gist the full output\n\
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wouldn't bet on people understanding what "gist the full output" means… Let's go with "If you could open an issue at … quoting the full output…"

@killercup
Copy link
Member

Nice. I tweaked the wording a bit and have another PR waiting to add error messages for rustfix internal errors.

@killercup killercup merged commit 17bcea9 into rust-lang:master May 6, 2018
@alexcrichton alexcrichton deleted the warn-when-break branch May 6, 2018 16:57
@alexcrichton
Copy link
Member Author

👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Emit a warning if automatically applied changes cause build to fail
2 participants