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

Create E0748 error code for unterminated raw strings #69260

Merged
merged 4 commits into from
Feb 29, 2020

Conversation

GuillaumeGomez
Copy link
Member

Reopening of #66035.

r? @estebank

@rust-highfive
Copy link
Collaborator

Some changes occurred in diagnostic error codes

cc @GuillaumeGomez

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Feb 18, 2020
@GuillaumeGomez
Copy link
Member Author

cc @rust-lang/compiler

Copy link
Member

@varkor varkor left a comment

Choose a reason for hiding this comment

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

r=me with tweaked sentence.

let dolphins = r##"Dolphins!"#; // error!
```
To terminate a raw string, you have to have the same number of `#` at the end
than at the beginning. Example:
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
than at the beginning. Example:
as at the beginning. Example:

Comment on lines 12 to 13
let dolphins = r#"Dolphins!"#; // one `#` at the beginning, one at the end so
// all good!
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
let dolphins = r#"Dolphins!"#; // one `#` at the beginning, one at the end so
// all good!
let dolphins = r#"Dolphins!"#; // One `#` at the beginning; one at the end:
// all good!

@estebank
Copy link
Contributor

also r=me after applying varkor's changes

@GuillaumeGomez
Copy link
Member Author

@bors: r=varkor,estebank

@bors
Copy link
Contributor

bors commented Feb 27, 2020

📌 Commit e2da93acb2432c26a74ea83128d72884d8b0cdf3 has been approved by varkor,estebank

@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-review Status: Awaiting review from the assignee but also interested parties. labels Feb 27, 2020
@bors
Copy link
Contributor

bors commented Feb 27, 2020

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

@bors bors 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-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Feb 27, 2020
@GuillaumeGomez
Copy link
Member Author

E0747 has been taken so let's move to E0748...

@GuillaumeGomez
Copy link
Member Author

@bors: r=varkor,estebank

@bors
Copy link
Contributor

bors commented Feb 28, 2020

📌 Commit e273828 has been approved by varkor,estebank

@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 Feb 28, 2020
@bors
Copy link
Contributor

bors commented Feb 29, 2020

⌛ Testing commit e273828 with merge e9bca51...

@bors
Copy link
Contributor

bors commented Feb 29, 2020

☀️ Test successful - checks-azure
Approved by: varkor,estebank
Pushing e9bca51 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Feb 29, 2020
@bors bors merged commit e9bca51 into rust-lang:master Feb 29, 2020
@rust-highfive
Copy link
Collaborator

📣 Toolstate changed by #69260!

Tested on commit e9bca51.
Direct link to PR: #69260

🎉 rls on linux: test-fail → test-pass (cc @Xanewok).

rust-highfive added a commit to rust-lang-nursery/rust-toolstate that referenced this pull request Feb 29, 2020
Tested on commit rust-lang/rust@e9bca51.
Direct link to PR: <rust-lang/rust#69260>

🎉 rls on linux: test-fail → test-pass (cc @Xanewok).
@GuillaumeGomez GuillaumeGomez deleted the create-E0747-error-code branch March 2, 2020 09:43
@GuillaumeGomez GuillaumeGomez changed the title Create E0747 error code for unterminated raw strings Create E0748 error code for unterminated raw strings Jun 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. 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.

6 participants