std: Rename strbuf operations to string
[breaking-change]
This commit is contained in:
@@ -19,14 +19,14 @@ use parse::token;
|
||||
pub fn string_to_tts(source_str: String) -> Vec<ast::TokenTree> {
|
||||
let ps = new_parse_sess();
|
||||
filemap_to_tts(&ps,
|
||||
string_to_filemap(&ps, source_str, "bogofile".to_strbuf()))
|
||||
string_to_filemap(&ps, source_str, "bogofile".to_string()))
|
||||
}
|
||||
|
||||
// map string to parser (via tts)
|
||||
pub fn string_to_parser<'a>(ps: &'a ParseSess, source_str: String) -> Parser<'a> {
|
||||
new_parser_from_source_str(ps,
|
||||
Vec::new(),
|
||||
"bogofile".to_strbuf(),
|
||||
"bogofile".to_string(),
|
||||
source_str)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user