about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-02-15 13:54:49 -0800
committerbors <bors@rust-lang.org>2013-02-15 13:54:49 -0800
commit566bcf2225634ee4d4698247fe89364440eb534c (patch)
tree75b488c9d3568c5732c43655d461eded9697e272 /src/libsyntax
parent0528329a4fb7765917bda30e9e1805627801d36a (diff)
parent91af52784aa1febcd424b9057221298c1f793094 (diff)
downloadrust-566bcf2225634ee4d4698247fe89364440eb534c.tar.gz
rust-566bcf2225634ee4d4698247fe89364440eb534c.zip
auto merge of #4969 : nickdesaulniers/rust/issue3869, r=brson
Issue #3869
review? @nikomatsakis 

Convert all uses of vec::slice to vec::view Issue #3869
Rename const_view to const_slice
Renamed mut_view to mut_slice
Fix windows build error.  `buf` is borrowed by the call to
`as_mut_buf()` and so we must invoke `slice()` outside of that
call.
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/diagnostic.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/diagnostic.rs b/src/libsyntax/diagnostic.rs
index 2b24d03f8e9..ad0998d503a 100644
--- a/src/libsyntax/diagnostic.rs
+++ b/src/libsyntax/diagnostic.rs
@@ -231,7 +231,7 @@ fn highlight_lines(cm: @codemap::CodeMap,
     let mut elided = false;
     let mut display_lines = /* FIXME (#2543) */ copy lines.lines;
     if vec::len(display_lines) > max_lines {
-        display_lines = vec::slice(display_lines, 0u, max_lines);
+        display_lines = vec::slice(display_lines, 0u, max_lines).to_vec();
         elided = true;
     }
     // Print the offending lines