cfg_attr_multi: Basic implementation

Does not implement the warning or a feature flag.
This commit is contained in:
Havvy (Ryan Scheel) 2018-09-10 15:06:49 -07:00
parent 9568ec6bef
commit 1a867dc346
14 changed files with 252 additions and 45 deletions

View file

@ -678,7 +678,7 @@ impl<'a> Parser<'a> {
/// Expect next token to be edible or inedible token. If edible,
/// then consume it; if inedible, then return without consuming
/// anything. Signal a fatal error if next token is unexpected.
fn expect_one_of(&mut self,
pub fn expect_one_of(&mut self,
edible: &[token::Token],
inedible: &[token::Token]) -> PResult<'a, ()>{
fn tokens_to_string(tokens: &[TokenType]) -> String {