Fix fallout in rustdoc and tests.
This commit is contained in:
@@ -8,11 +8,10 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
use ast;
|
||||
use ast::{self, Ident};
|
||||
use parse::{ParseSess,PResult,filemap_to_tts};
|
||||
use parse::{lexer, new_parser_from_source_str};
|
||||
use parse::parser::Parser;
|
||||
use parse::token;
|
||||
use ptr::P;
|
||||
use tokenstream;
|
||||
use std::iter::Peekable;
|
||||
@@ -78,9 +77,9 @@ pub fn string_to_pat(source_str: String) -> P<ast::Pat> {
|
||||
})
|
||||
}
|
||||
|
||||
/// Convert a vector of strings to a vector of ast::Ident's
|
||||
pub fn strs_to_idents(ids: Vec<&str> ) -> Vec<ast::Ident> {
|
||||
ids.iter().map(|u| token::str_to_ident(*u)).collect()
|
||||
/// Convert a vector of strings to a vector of Ident's
|
||||
pub fn strs_to_idents(ids: Vec<&str> ) -> Vec<Ident> {
|
||||
ids.iter().map(|u| Ident::from_str(*u)).collect()
|
||||
}
|
||||
|
||||
/// Does the given string match the pattern? whitespace in the first string
|
||||
|
||||
Reference in New Issue
Block a user