dbg! on unexpected toplevel token

This commit is contained in:
ConnorSkees 2020-01-26 13:50:19 -05:00
parent 8756adaaaf
commit 620e33f541

View File

@ -425,7 +425,7 @@ impl<'a> StyleSheetParser<'a> {
TokenKind::Symbol(Symbol::BitAnd) => { TokenKind::Symbol(Symbol::BitAnd) => {
return Err(SassError::new("Base-level rules cannot contain the parent-selector-referencing character '&'.", pos.clone())) return Err(SassError::new("Base-level rules cannot contain the parent-selector-referencing character '&'.", pos.clone()))
} }
_ => match self.lexer.next() { _ => match dbg!(self.lexer.next()) {
Some(Token { pos, .. }) => self.error(pos, "unexpected toplevel token"), Some(Token { pos, .. }) => self.error(pos, "unexpected toplevel token"),
_ => unsafe { std::hint::unreachable_unchecked() }, _ => unsafe { std::hint::unreachable_unchecked() },
}, },