libsyntax: fix fallout
This commit is contained in:
parent
d22acb77b2
commit
5e7469cfe1
@ -60,7 +60,7 @@ fn cs_clone(
|
||||
cx.ident_of("Clone"),
|
||||
cx.ident_of("clone"),
|
||||
];
|
||||
let subcall = |field: &FieldInfo| {
|
||||
let subcall = |&: field: &FieldInfo| {
|
||||
let args = vec![cx.expr_addr_of(field.span, field.self_.clone())];
|
||||
|
||||
cx.expr_call_global(field.span, fn_path.clone(), args)
|
||||
|
@ -25,6 +25,7 @@
|
||||
#![allow(unknown_features)]
|
||||
#![feature(macro_rules, globs, default_type_params, phase, slicing_syntax)]
|
||||
#![feature(quote, unsafe_destructor, import_shadowing)]
|
||||
#![feature(unboxed_closures)]
|
||||
|
||||
extern crate arena;
|
||||
extern crate fmt_macros;
|
||||
|
@ -49,7 +49,7 @@ impl<T> OwnedSlice<T> {
|
||||
self.into_vec().into_iter()
|
||||
}
|
||||
|
||||
pub fn map<U>(&self, f: |&T| -> U) -> OwnedSlice<U> {
|
||||
pub fn map<U, F: FnMut(&T) -> U>(&self, f: F) -> OwnedSlice<U> {
|
||||
self.iter().map(f).collect()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user