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

syntax: Apply x as usize < y recovery to type ascription as well #43060

Merged
merged 2 commits into from
Jul 7, 2017

Conversation

petrochenkov
Copy link
Contributor

@petrochenkov petrochenkov commented Jul 4, 2017

Also correct spans, add some comments.

r? @estebank

@aidanhs aidanhs added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 5, 2017
| ^---------------------
| |
| interpreted as generic arguments
| not interpreted as comparison
Copy link
Contributor

Choose a reason for hiding this comment

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

Will look at the code this afternoon to see what change would be needed for this suggestion to be implemented, but I feel the output should be:

   |
20 |     println!("{}{}", a: usize < long_name, long_name);
   |                               ^ -------------------- interpreted as generic arguments
   |                               |
   |                               not interpreted as comparison

@alexcrichton
Copy link
Member

Assigning @nrc just to make sure someone's assigned here, but looks like @estebank has review taken care of

@petrochenkov
Copy link
Contributor Author

@estebank
Updated with the span fix.

@estebank
Copy link
Contributor

estebank commented Jul 6, 2017

@bors r+

@bors
Copy link
Contributor

bors commented Jul 6, 2017

📌 Commit 0e10bd8 has been approved by estebank

@bors
Copy link
Contributor

bors commented Jul 7, 2017

☔ The latest upstream changes (presumably #42904) made this pull request unmergeable. Please resolve the merge conflicts.

@petrochenkov
Copy link
Contributor Author

Rebased.
@bors r=estebank

@bors
Copy link
Contributor

bors commented Jul 7, 2017

📌 Commit 4323877 has been approved by estebank

@bors
Copy link
Contributor

bors commented Jul 7, 2017

⌛ Testing commit 4323877 with merge 70412af...

bors added a commit that referenced this pull request Jul 7, 2017
syntax: Apply `x as usize < y` recovery to type ascription as well

Also correct spans, add some comments.

r? @estebank
@bors
Copy link
Contributor

bors commented Jul 7, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: estebank
Pushing 70412af to master...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants