From a5987bd715e96f3649841c1e2020fc972134bd11 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 21 Dec 2018 18:49:52 +0300 Subject: show debug repr of literals --- crates/ra_syntax/src/string_lexing/byte.rs | 2 +- crates/ra_syntax/src/string_lexing/byte_string.rs | 2 +- crates/ra_syntax/src/string_lexing/char.rs | 2 +- crates/ra_syntax/src/string_lexing/string.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/ra_syntax/src') diff --git a/crates/ra_syntax/src/string_lexing/byte.rs b/crates/ra_syntax/src/string_lexing/byte.rs index 24424349c..b3228d6ca 100644 --- a/crates/ra_syntax/src/string_lexing/byte.rs +++ b/crates/ra_syntax/src/string_lexing/byte.rs @@ -40,7 +40,7 @@ impl<'a> Iterator for ByteComponentIterator<'a> { assert!( self.parser.peek() == None, - "byte literal should leave no unparsed input: src = {}, pos = {}, length = {}", + "byte literal should leave no unparsed input: src = {:?}, pos = {}, length = {}", self.parser.src, self.parser.pos, self.parser.src.len() diff --git a/crates/ra_syntax/src/string_lexing/byte_string.rs b/crates/ra_syntax/src/string_lexing/byte_string.rs index 5b6dda760..a6056159b 100644 --- a/crates/ra_syntax/src/string_lexing/byte_string.rs +++ b/crates/ra_syntax/src/string_lexing/byte_string.rs @@ -40,7 +40,7 @@ impl<'a> Iterator for ByteStringComponentIterator<'a> { assert!( self.parser.peek() == None, - "byte string literal should leave no unparsed input: src = {}, pos = {}, length = {}", + "byte string literal should leave no unparsed input: src = {:?}, pos = {}, length = {}", self.parser.src, self.parser.pos, self.parser.src.len() diff --git a/crates/ra_syntax/src/string_lexing/char.rs b/crates/ra_syntax/src/string_lexing/char.rs index 885c03b14..e01813176 100644 --- a/crates/ra_syntax/src/string_lexing/char.rs +++ b/crates/ra_syntax/src/string_lexing/char.rs @@ -35,7 +35,7 @@ impl<'a> Iterator for CharComponentIterator<'a> { assert!( self.parser.peek() == None, - "char literal should leave no unparsed input: src = {}, pos = {}, length = {}", + "char literal should leave no unparsed input: src = {:?}, pos = {}, length = {}", self.parser.src, self.parser.pos, self.parser.src.len() diff --git a/crates/ra_syntax/src/string_lexing/string.rs b/crates/ra_syntax/src/string_lexing/string.rs index 1b23029c6..d8351e9af 100644 --- a/crates/ra_syntax/src/string_lexing/string.rs +++ b/crates/ra_syntax/src/string_lexing/string.rs @@ -35,7 +35,7 @@ impl<'a> Iterator for StringComponentIterator<'a> { assert!( self.parser.peek() == None, - "string literal should leave no unparsed input: src = {}, pos = {}, length = {}", + "string literal should leave no unparsed input: src = {:?}, pos = {}, length = {}", self.parser.src, self.parser.pos, self.parser.src.len() -- cgit v1.2.3