about summary refs log tree commit diff
path: root/src/lib/std.rc
diff options
context:
space:
mode:
authorLindsey Kuper <lkuper@mozilla.com>2011-03-18 12:32:54 -0700
committerLindsey Kuper <lkuper@mozilla.com>2011-03-18 12:32:54 -0700
commit6dee1ac161a22a4bc1e49c5dac3c7bbba1ff97f0 (patch)
treef423d576e977e7a258f09e50e5a51702525782e2 /src/lib/std.rc
parent830f2d02f19b45ff4b4a4d7946b69f206b5dcdff (diff)
parent6f65ce5255ac16204490bdd7dcf99acd24876bc6 (diff)
Merge branch 'master' of git://github.com/graydon/rust
Diffstat (limited to 'src/lib/std.rc')
-rw-r--r--src/lib/std.rc11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/std.rc b/src/lib/std.rc
index a339fd8576a..7a3cdbb206a 100644
--- a/src/lib/std.rc
+++ b/src/lib/std.rc
@@ -34,6 +34,17 @@ auth _str = unsafe;
 auth _vec = unsafe;
 auth _task = unsafe;
 
+
+// FIXME: impure on these will infect caller in a way that is totally
+// beyond reason, if the caller's mutated-argument doesn't escape;
+// 'impure' needs work.
+auth _str.unshift_byte = impure;
+auth _str.shift_byte = impure;
+auth _str.pop_byte = impure;
+auth _vec.shift = impure;
+auth _vec.unshift = impure;
+auth _vec.pop = impure;
+
 auth dbg = unsafe;
 
 auth _uint.next_power_of_two = unsafe;