about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2014-11-26 05:52:16 -0500
committerNiko Matsakis <niko@alum.mit.edu>2014-12-22 12:27:07 -0500
commit7f6177e64627110e5b9776bd5304d65806081390 (patch)
tree7f2836a870dc5221135964ff338b9f591b249ccd /src/libcore
parent211782fef562cac25922080229fd8443fb352792 (diff)
Fix fallout from changes. In cases where stage0 compiler is needed, we
cannot use an `as` expression to coerce, so I used a one-off function
instead (this is a no-op in stage0, but in stage1+ it triggers
coercion from the fn pointer to the fn item type).
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/str.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcore/str.rs b/src/libcore/str.rs
index a89a7970ae9..1cd58aee061 100644
--- a/src/libcore/str.rs
+++ b/src/libcore/str.rs
@@ -30,6 +30,7 @@ use iter::range;
 use kinds::Sized;
 use mem;
 use num::Int;
+use ops::FnMut;
 use option::Option;
 use option::Option::{None, Some};
 use ops::{Fn, FnMut};