Remove Ident::empty
by nnethercote · Pull Request #140252 · rust-lang/rust (original) (raw)
As part of this, streamline a bunch of related stuff:
- Introduce
PathParser::word_sym
, as an alternative toPathParser::word
. - Remove
MetaItemParser::path
, and just get the two parsers one at a time. - Rename
MetaItemParser::path_without_args
asMetaItemParser::path
, and avoid the clone. - Inline and remove
MetaItemParser::word_without_args
, which has a single use. - Remove
MetaItemParser::word_or_empty_without_args
, which has a single use. - Remove
MetaItemParser::path_is
, which is unused. - Remove
MetaItemListParser::all_{word,path}_list
, which are unused.