forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lexer: Avoid some span arithmetic in
emit_unescape_error
- Loading branch information
1 parent
2efd070
commit e4e460b
Showing
4 changed files
with
26 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#![feature(rustc_attrs)] | ||
|
||
#[rustc_dummy = b"ffi.rs"] //~ ERROR byte constant must be ASCII | ||
//~| ERROR byte constant must be ASCII | ||
fn main() {} |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
error: byte constant must be ASCII. Use a \xHH escape for a non-ASCII byte | ||
--> $DIR/key-value-non-ascii.rs:3:19 | ||
| | ||
LL | #[rustc_dummy = b"ffi.rs"] | ||
| ^ | ||
|
||
error: byte constant must be ASCII. Use a \xHH escape for a non-ASCII byte | ||
--> $DIR/key-value-non-ascii.rs:3:21 | ||
| | ||
LL | #[rustc_dummy = b"ffi.rs"] | ||
| ^^^ | ||
|
||
error: aborting due to 2 previous errors | ||
|