summary refs log tree commit diff
path: root/src/libextra/ebml.rs
AgeCommit message (Collapse)AuthorLines
2013-09-05Rename str::from_bytes to str::from_utf8, closes #8985Florian Hahn-1/+1
2013-09-04forbid cast as boolDaniel Micay-1/+1
This is currently unsound since `bool` is represented as `i8`. It will become sound when `bool` is stored as `i8` but always used as `i1`. However, the current behaviour will always be identical to `x & 1 != 0`, so there's no need for it. It's also surprising, since `x != 0` is the expected behaviour. Closes #7311
2013-09-04stop treating char as an integer typeDaniel Micay-2/+2
Closes #7609
2013-08-25Revert "auto merge of #8745 : brson/rust/metadata, r=cmr"Brian Anderson-57/+20
This reverts commit 491bc3568c87dadaba4d342135bd308961c6e0ef, reversing changes made to 05f1bbba16912f63b562a7847801823872f89ec6.
2013-08-23Don't copy metadata after loadingBrian Anderson-20/+57
2013-07-30implement pointer arithmetic with GEPDaniel Micay-1/+1
Closes #8118, #7136 ~~~rust extern mod extra; use std::vec; use std::ptr; fn bench_from_elem(b: &mut extra::test::BenchHarness) { do b.iter { let v: ~[u8] = vec::from_elem(1024, 0u8); } } fn bench_set_memory(b: &mut extra::test::BenchHarness) { do b.iter { let mut v: ~[u8] = vec::with_capacity(1024); unsafe { let vp = vec::raw::to_mut_ptr(v); ptr::set_memory(vp, 0, 1024); vec::raw::set_len(&mut v, 1024); } } } fn bench_vec_repeat(b: &mut extra::test::BenchHarness) { do b.iter { let v: ~[u8] = ~[0u8, ..1024]; } } ~~~ Before: test bench_from_elem ... bench: 415 ns/iter (+/- 17) test bench_set_memory ... bench: 85 ns/iter (+/- 4) test bench_vec_repeat ... bench: 83 ns/iter (+/- 3) After: test bench_from_elem ... bench: 84 ns/iter (+/- 2) test bench_set_memory ... bench: 84 ns/iter (+/- 5) test bench_vec_repeat ... bench: 84 ns/iter (+/- 3)
2013-07-17librustc: Remove all uses of "copy".Patrick Walton-0/+11
2013-07-17librustc: Add a lint mode for unnecessary `copy` and remove a bunch of them.Patrick Walton-2/+6
2013-07-01rustc: add a lint to enforce uppercase statics.Huon Wilson-2/+2
2013-06-29Great renaming: propagate throughout the rest of the codebaseCorey Richardson-13/+12
2013-06-29libextra: unused import fix for android AGAINYoung-il Choi-1/+4
2013-06-28Fix merge falloutCorey Richardson-5/+0
2013-06-28libextra: Fix even more merge fallout.Patrick Walton-1/+2
2013-06-28librustc: Rewrite reachability and forbid duplicate methods in type ↵Patrick Walton-14/+16
implementations. This should allow fewer symbols to be exported.
2013-06-27extra: unused import fix for androidYoung-il Choi-1/+7
2013-06-27Convert vec::[mut_]slice to methods, remove vec::const_slice.Huon Wilson-2/+1
2013-06-12std: unify the str -> [u8] functions as 3 methods: .as_bytes() and ↵Huon Wilson-3/+2
.as_bytes_with_null[_consume](). The first acts on &str and is not nul-terminated, the last two act on strings that are always null terminated (&'static str, ~str and @str).
2013-06-08remove deprecated vec::{is_empty, len} functionsDaniel Micay-1/+1
2013-06-08Avoid unnecessary allocations in the metadata decoderBjörn Steinbrink-7/+12
2013-06-01Remove all uses of `pub impl`. rs=stylePatrick Walton-24/+25
2013-05-31Implement unimplemented methods in ebmlAlex Crichton-71/+79
2013-05-30libextra: Require documentation by defaultAlex Crichton-0/+2
2013-05-22libextra: Rename the actual metadata names of libcore to libstd and libstd ↵Patrick Walton-0/+4
to libextra
2013-05-22libstd: Rename libcore to libstd and libstd to libextra; update makefiles.Patrick Walton-0/+957
This only changes the directory names; it does not change the "real" metadata names.