-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Create E0748 error code for unterminated raw strings #69260
Conversation
Some changes occurred in diagnostic error codes |
cc @rust-lang/compiler |
There was a problem hiding this 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: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
than at the beginning. Example: | |
as at the beginning. Example: |
let dolphins = r#"Dolphins!"#; // one `#` at the beginning, one at the end so | ||
// all good! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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! |
also r=me after applying varkor's changes |
@bors: r=varkor,estebank |
📌 Commit e2da93acb2432c26a74ea83128d72884d8b0cdf3 has been approved by |
☔ The latest upstream changes (presumably #68434) made this pull request unmergeable. Please resolve the merge conflicts. |
E0747 has been taken so let's move to E0748... |
e2da93a
to
e273828
Compare
@bors: r=varkor,estebank |
📌 Commit e273828 has been approved by |
☀️ Test successful - checks-azure |
Tested on commit rust-lang/rust@e9bca51. Direct link to PR: <rust-lang/rust#69260> 🎉 rls on linux: test-fail → test-pass (cc @Xanewok).
Reopening of #66035.
r? @estebank