From 0b971625c389c1638957b010a35c7bb1a6bd69b9 Mon Sep 17 00:00:00 2001 From: Paul Daniel Faria Date: Mon, 22 Jun 2020 22:28:09 -0400 Subject: Fix underflow panic when doctests are at top of file --- crates/ra_ide/src/snapshots/highlight_doctest.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'crates/ra_ide/src/snapshots') diff --git a/crates/ra_ide/src/snapshots/highlight_doctest.html b/crates/ra_ide/src/snapshots/highlight_doctest.html index 63199cdbe..ac546806e 100644 --- a/crates/ra_ide/src/snapshots/highlight_doctest.html +++ b/crates/ra_ide/src/snapshots/highlight_doctest.html @@ -32,7 +32,10 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd .keyword.unsafe { color: #BC8383; font-weight: bold; } .control { font-style: italic; } -
struct Foo {
+
/// ```
+/// let _ = "early doctests should not go boom";
+/// ```
+struct Foo {
     bar: bool,
 }
 
-- 
cgit v1.2.3