From 3859eca85134d518278f172fb26483e098381047 Mon Sep 17 00:00:00 2001 From: Mark Mansi Date: Mon, 29 Jan 2018 16:26:11 -0600 Subject: Improved tests + typo fixes + assert --- src/libsyntax/ext/tt/quoted.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/libsyntax') diff --git a/src/libsyntax/ext/tt/quoted.rs b/src/libsyntax/ext/tt/quoted.rs index 8e05a6ccc47..bde1010b523 100644 --- a/src/libsyntax/ext/tt/quoted.rs +++ b/src/libsyntax/ext/tt/quoted.rs @@ -396,6 +396,8 @@ where // be a `?` separator followed by any Kleene operator. We need to look ahead 1 token to // find out which. Ok(Ok(op)) => { + assert_eq!(op, KleeneOp::ZeroOrOne); + // Lookahead at #2. If it is a KleenOp, then #1 is a separator. let is_1_sep = if let Some(&tokenstream::TokenTree::Token(_, ref tok2)) = input.peek() { kleene_op(tok2).is_some() -- cgit 1.4.1-3-g733a5