Skip to content

Commit 5e7469c

Browse files
author
Jorge Aparicio
committed
libsyntax: fix fallout
1 parent d22acb7 commit 5e7469c

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/libsyntax/ext/deriving/clone.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ fn cs_clone(
6060
cx.ident_of("Clone"),
6161
cx.ident_of("clone"),
6262
];
63-
let subcall = |field: &FieldInfo| {
63+
let subcall = |&: field: &FieldInfo| {
6464
let args = vec![cx.expr_addr_of(field.span, field.self_.clone())];
6565

6666
cx.expr_call_global(field.span, fn_path.clone(), args)

src/libsyntax/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#![allow(unknown_features)]
2626
#![feature(macro_rules, globs, default_type_params, phase, slicing_syntax)]
2727
#![feature(quote, unsafe_destructor, import_shadowing)]
28+
#![feature(unboxed_closures)]
2829

2930
extern crate arena;
3031
extern crate fmt_macros;

src/libsyntax/owned_slice.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ impl<T> OwnedSlice<T> {
4949
self.into_vec().into_iter()
5050
}
5151

52-
pub fn map<U>(&self, f: |&T| -> U) -> OwnedSlice<U> {
52+
pub fn map<U, F: FnMut(&T) -> U>(&self, f: F) -> OwnedSlice<U> {
5353
self.iter().map(f).collect()
5454
}
5555
}

0 commit comments

Comments
 (0)