about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGrisha Vartanyan <grisha@vartanyan.com>2022-03-23 23:07:39 +0100
committerGrisha Vartanyan <grisha@vartanyan.com>2022-03-23 23:44:16 +0100
commitb51f20eaf5cc311ca601643306ec2ee0c8a714e8 (patch)
tree7c75194d0f37314e8328f4d6194e86534c646b6f
parent38e0ae590caab982a4305da58a0a62385c2dd880 (diff)
downloadrust-b51f20eaf5cc311ca601643306ec2ee0c8a714e8.tar.gz
rust-b51f20eaf5cc311ca601643306ec2ee0c8a714e8.zip
Update syntax tree definition
-rw-r--r--compiler/rustc_ast/src/ast.rs2
-rw-r--r--compiler/rustc_ast/src/token.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_ast/src/ast.rs b/compiler/rustc_ast/src/ast.rs
index f5c4affdce2..75ccbc92be1 100644
--- a/compiler/rustc_ast/src/ast.rs
+++ b/compiler/rustc_ast/src/ast.rs
@@ -1616,7 +1616,7 @@ pub enum StrStyle {
     /// A raw string, like `r##"foo"##`.
     ///
     /// The value is the number of `#` symbols used.
-    Raw(u16),
+    Raw(u8),
 }
 
 /// An AST literal.
diff --git a/compiler/rustc_ast/src/token.rs b/compiler/rustc_ast/src/token.rs
index c367573de8a..b860612f430 100644
--- a/compiler/rustc_ast/src/token.rs
+++ b/compiler/rustc_ast/src/token.rs
@@ -60,9 +60,9 @@ pub enum LitKind {
     Integer,
     Float,
     Str,
-    StrRaw(u16), // raw string delimited by `n` hash symbols
+    StrRaw(u8), // raw string delimited by `n` hash symbols
     ByteStr,
-    ByteStrRaw(u16), // raw byte string delimited by `n` hash symbols
+    ByteStrRaw(u8), // raw byte string delimited by `n` hash symbols
     Err,
 }