Skip to content

Commit b51f20e

Browse files
committed
Update syntax tree definition
1 parent 38e0ae5 commit b51f20e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

compiler/rustc_ast/src/ast.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1616,7 +1616,7 @@ pub enum StrStyle {
16161616
/// A raw string, like `r##"foo"##`.
16171617
///
16181618
/// The value is the number of `#` symbols used.
1619-
Raw(u16),
1619+
Raw(u8),
16201620
}
16211621

16221622
/// An AST literal.

compiler/rustc_ast/src/token.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ pub enum LitKind {
6060
Integer,
6161
Float,
6262
Str,
63-
StrRaw(u16), // raw string delimited by `n` hash symbols
63+
StrRaw(u8), // raw string delimited by `n` hash symbols
6464
ByteStr,
65-
ByteStrRaw(u16), // raw byte string delimited by `n` hash symbols
65+
ByteStrRaw(u8), // raw byte string delimited by `n` hash symbols
6666
Err,
6767
}
6868

0 commit comments

Comments
 (0)