Use ioivec::read_whole_file_str in a few places
This commit is contained in:
parent
a1a25969a0
commit
35e9e02066
4 changed files with 8 additions and 16 deletions
|
@ -108,8 +108,7 @@ fn maybe_highlight_lines(sp: &option::t[span], cm: &codemap,
|
|||
|
||||
// FIXME: reading in the entire file is the worst possible way to
|
||||
// get access to the necessary lines.
|
||||
let rdr = ioivec::file_reader(lines.name);
|
||||
let file = str::unsafe_from_bytes_ivec(rdr.read_whole_stream());
|
||||
let file = ioivec::read_whole_file_str(lines.name);
|
||||
let fm = get_filemap(cm, lines.name);
|
||||
|
||||
// arbitrarily only print up to six lines of the error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue