auto merge of #8997 : fhahn/rust/issue_8985, r=catamorphism,brson
Patch for #8985
This commit is contained in:
commit
6f9ce0948a
38 changed files with 147 additions and 147 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue