pub fn parse_cfgspecs(cfgspecs: Vec<String> ) -> ast::CrateConfig {
    cfgspecs.into_iter().map(|s| {
        let sess = parse::ParseSess::new();
        let mut parser = parse::new_parser_from_source_str(&sess,
                                                           Vec::new(),
                                                           "cfgspec".to_string(),
                                                           s.to_string());
        let meta_item = panictry!(parser.parse_meta_item());

        if !parser.reader.is_eof() {
            early_error(ErrorOutputType::default(), &format!("invalid --cfg argument: {}",
                                                             s))
        }

        meta_item
    }).collect::<ast::CrateConfig>()
}
// Convert strings provided as --cfg [cfgspec] into a crate_cfg
Convert strings provided as --cfg [cfgspec] into a crate_cfg
Convert strings provided as -- cfg [ cfgspec ] into a crate_cfg
pub fn parse_cfgspecs(cfgspecs: Vec<String> ) -> ast::CrateConfig {
    cfgspecs.into_iter().map(|s| {
        let sess = parse::ParseSess::new();
        let mut parser = parse::new_parser_from_source_str(&sess,
                                                           Vec::new(),
                                                           "cfgspec".to_string(),
                                                           s.to_string());
        let meta_item = panictry!(parser.parse_meta_item());
        if !parser.reader.is_eof() {
            early_error(ErrorOutputType::default(), &format!("invalid --cfg argument: {}",
                                                             s))
        }
        meta_item
    }).collect::<ast::CrateConfig>()
}
pub fn parse_cfgspecs ( cfgspecs : Vec < String > ) -> ast :: CrateConfig { cfgspecs . into_iter ( ) . map ( | s | { let sess = parse :: ParseSess :: new ( ) ; let mut parser = parse :: new_parser_from_source_str ( & sess , Vec :: new ( ) , " " . to_string ( ) , s . to_string ( ) ) ; let meta_item = panictry ! ( parser parse_meta_item ( ) ) ; if ! parser . reader . is_eof ( ) { early_error ( ErrorOutputType :: default ( ) , & format ! ( " " s ) ) } meta_item } ) . collect :: < ast :: CrateConfig > ( ) }
Convert strings provided as --cfg [cfgspec] into a crate_cfg
Convert strings provided as -- cfg [ cfgspec ] into a crate_cfg
cfgspecs
Vec<String>
cfgspecs
Vec<String>