eb0a34c398
Unfortunately, right now iterating over const vectors is not safe. This is because the callback expects an *immutable* reference (in region terms: &T), not a const reference (&const T). This was not being caught by the type system due to the use of unsafe operations. To fix this, we need to either (1) find a way to parameterize over mutability or (2) add each_const, each_mut etc
This is preliminary version of the Rust compiler, libraries and tools Source layout: rustc/ The self-hosted compiler libcore/ The core library (imported and linked by default) libstd/ The standard library (slightly more peripheral code) libsyntax/ The Rust parser and pretty-printer rt/ The runtime system rt/rust_*.cpp - The majority of the runtime services rt/isaac - The PRNG used for pseudo-random choices in the runtime rt/bigint - The bigint library used for the 'big' type rt/uthash - Small hashtable-and-list library for C, used in runtime rt/sync - Concurrency utils rt/util - Small utility classes for the runtime. rt/vg - Valgrind headers rt/msvc - MSVC support test/ Testsuite test/compile-fail - Tests that should fail to compile test/run-fail - Tests that should compile, run and fail test/run-pass - Tests that should compile, run and succeed test/bench - Benchmarks and miscellanea test/pretty - Pretty-printer tests test/auxiliary - Dependencies of tests compiletest/ The test runner cargo/ The package manager rustdoc/ The Rust API documentation tool llvm/ The LLVM submodule libuv/ The libuv submodule rustllvm/ LLVM support code fuzzer/ A collection of fuzz testers etc/ Scripts, editor support, misc