about summary refs log tree commit diff
path: root/src/rt/rust_kernel.cpp
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2012-07-18 10:17:40 -0700
committerNiko Matsakis <niko@alum.mit.edu>2012-07-18 11:48:58 -0700
commiteb0a34c39865d456a776fc8e81ba780dd383f315 (patch)
tree1e5144370e3b2efe267eb6d34a09ba827dc8caf8 /src/rt/rust_kernel.cpp
parent7f3bbd57c08bc29cb95f84a764f85d07b14899f6 (diff)
downloadrust-eb0a34c39865d456a776fc8e81ba780dd383f315.tar.gz
rust-eb0a34c39865d456a776fc8e81ba780dd383f315.zip
iterate only over immutable vectors; use newer region notation
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
Diffstat (limited to 'src/rt/rust_kernel.cpp')
0 files changed, 0 insertions, 0 deletions