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/string.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_syntax/src/string_lexing/string.rs') 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