Registry Mirror
Skip to content

Conversation

@GuillaumeGomez

Copy link
Copy Markdown
Member

Comment thread src/librustc/middle/check_const.rs Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

"certainly not what you want" doesn't sound like a nice way to phrase it. In this case, there's no single suggestion for fixing that stands out, so we shouldn't be adding this help in the first place (that's what the long diagnostics are for)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

In this case, I found it useful because there is no case you might want to divide by 0. So instead of removing it, do you have a better sentence maybe ?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

But that's the point. In this case from the error itself that one should somehow fix it. This line doesn't really suggest anything and restates the obvious.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Okay, I remove this one then.

@Manishearth

Copy link
Copy Markdown
Member

r+ after you remove the first span_help

@GuillaumeGomez

Copy link
Copy Markdown
Member Author

@Manishearth: Done !

@Manishearth

Copy link
Copy Markdown
Member

@bors r+ rollup

@bors

bors commented Sep 5, 2015

Copy link
Copy Markdown
Contributor

📌 Commit 771ab35 has been approved by Manishearth

Manishearth added a commit to Manishearth/rust that referenced this pull request Sep 5, 2015
bors added a commit that referenced this pull request Sep 5, 2015
@bors
bors merged commit 771ab35 into rust-lang:master Sep 5, 2015
@GuillaumeGomez
GuillaumeGomez deleted the help_note branch September 5, 2015 19:14
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.

3 participants