Rename str::from_bytes to str::from_utf8, closes #8985

This commit is contained in:
Florian Hahn 2013-09-05 14:17:24 +02:00
parent 422dcbd56d
commit de39874801
38 changed files with 147 additions and 147 deletions

View file

@ -338,7 +338,7 @@ pub fn gather_comments_and_literals(span_diagnostic:
path: @str,
srdr: @io::Reader)
-> (~[cmnt], ~[lit]) {
let src = str::from_bytes(srdr.read_whole_stream()).to_managed();
let src = str::from_utf8(srdr.read_whole_stream()).to_managed();
let cm = CodeMap::new();
let filemap = cm.new_filemap(path, src);
let rdr = lexer::new_low_level_string_reader(span_diagnostic, filemap);