From 20d55ce44d4260b6dce220ba64ce81f55299d2ce Mon Sep 17 00:00:00 2001 From: Edwin Cheng Date: Sat, 3 Apr 2021 12:50:55 +0800 Subject: Allow include! an empty content file --- crates/mbe/src/syntax_bridge.rs | 3 --- 1 file changed, 3 deletions(-) (limited to 'crates/mbe/src') diff --git a/crates/mbe/src/syntax_bridge.rs b/crates/mbe/src/syntax_bridge.rs index 9d433b3b0..ae0780072 100644 --- a/crates/mbe/src/syntax_bridge.rs +++ b/crates/mbe/src/syntax_bridge.rs @@ -325,9 +325,6 @@ trait TokenConvertor { while self.peek().is_some() { self.collect_leaf(&mut subtree.token_trees); } - if subtree.token_trees.is_empty() { - return None; - } if subtree.token_trees.len() == 1 { if let tt::TokenTree::Subtree(first) = &subtree.token_trees[0] { return Some(first.clone()); -- cgit v1.2.3