-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prohibit bare CRs in raw byte strings
- Loading branch information
Showing
5 changed files
with
65 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,21 @@ | ||
error: raw byte string must be ASCII: \u{e9} | ||
--> $DIR/raw-byte-string-literals.rs:2:8 | ||
error: bare CR not allowed in string, use \r instead | ||
--> $DIR/raw-byte-string-literals.rs:5:9 | ||
| | ||
LL | br"a | ||
"; | ||
| ^ | ||
|
||
error: raw byte string must be ASCII | ||
--> $DIR/raw-byte-string-literals.rs:6:8 | ||
| | ||
LL | br"é"; | ||
| ^ | ||
|
||
error: found invalid character; only `#` is allowed in raw string delimitation: ~ | ||
--> $DIR/raw-byte-string-literals.rs:3:6 | ||
--> $DIR/raw-byte-string-literals.rs:7:6 | ||
| | ||
LL | br##~"a"~##; | ||
| ^^^ | ||
|
||
error: aborting due to 2 previous errors | ||
error: aborting due to 3 previous errors | ||
|