using DebugDropBomb
MODIFY
crates/rslint_parser/src/parser.rs
crates/rslint_parser/src/parser.rs
@@ -9,7 +9,7 @@ mod parse_recovery;
mod parsed_syntax;
pub(crate) mod single_token_parse_recovery;
-use drop_bomb::DropBomb;
+use drop_bomb::DebugDropBomb;
use rslint_errors::Diagnostic;
use rslint_lexer::Token;
use rslint_syntax::JsSyntaxKind::EOF;
@@ -477,7 +477,7 @@ pub struct Marker {
pub start: usize,
pub old_start: u32,
pub(crate) child_idx: Option<usize>,
- bomb: DropBomb,
+ bomb: DebugDropBomb,
}
impl Marker {
@@ -487,7 +487,7 @@ impl Marker {
start,
old_start: pos,
child_idx: None,
- bomb: DropBomb::new("Marker must either be `completed` or `abandoned` to avoid that children are implicitly attached to a markers parent."),
+ bomb: DebugDropBomb::new("Marker must either be `completed` or `abandoned` to avoid that children are implicitly attached to a markers parent."),
}
}

using DebugDropBomb (#1931)