Skip to content
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

rustc: improve E0669 span #55087

Merged
merged 3 commits into from
Nov 2, 2018
Merged

rustc: improve E0669 span #55087

merged 3 commits into from
Nov 2, 2018

Conversation

levex
Copy link
Contributor

@levex levex commented Oct 15, 2018

E0669 refers to an operand that cannot be coerced into a single LLVM
value, unfortunately right now this uses the Span for the entire inline
assembly statement, which is less than ideal.

This commit preserves the Span from HIR, which lets us emit the error
using the Span for the operand itself in MIR.

r? @nagisa
cc/ @parched

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 15, 2018
E0669 refers to a constraint that cannot be coerced into a single LLVM
value, unfortunately right now this uses the Span for the entire inline
assembly statement, which is less than ideal.

This commit preserves the Span from HIR, which lets us emit the error
using the Span for the operand itself in MIR.

Signed-off-by: Levente Kurusa <lkurusa@acm.org>
@levex
Copy link
Contributor Author

levex commented Oct 22, 2018

Just a heads up: I will finish this PR this week, but I've been busy recently so I haven't had the time yet. It's not forgotten about. :-)

@estebank estebank added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 23, 2018
Signed-off-by: Levente Kurusa <lkurusa@acm.org>
Copy link
Contributor

@parched parched left a comment

Choose a reason for hiding this comment

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

Looks good. It's probably worth adding a test for the multiple error case now though.

Signed-off-by: Levente Kurusa <lkurusa@acm.org>
@levex
Copy link
Contributor Author

levex commented Oct 30, 2018

@parched done!

r? @nagisa

@nagisa
Copy link
Member

nagisa commented Nov 2, 2018

@bors r+

@bors
Copy link
Contributor

bors commented Nov 2, 2018

📌 Commit 46b9461 has been approved by nagisa

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Nov 2, 2018
@bors
Copy link
Contributor

bors commented Nov 2, 2018

⌛ Testing commit 46b9461 with merge 8b09631...

bors added a commit that referenced this pull request Nov 2, 2018
rustc: improve E0669 span

E0669 refers to an operand that cannot be coerced into a single LLVM
value, unfortunately right now this uses the Span for the entire inline
assembly statement, which is less than ideal.

This commit preserves the Span from HIR, which lets us emit the error
using the Span for the operand itself in MIR.

r? @nagisa
cc/ @parched
@bors
Copy link
Contributor

bors commented Nov 2, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: nagisa
Pushing 8b09631 to master...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants