Skip to content

Commit 21d93b8

Browse files
author
Jorge Aparicio
committed
---
yaml --- r: 163804 b: refs/heads/master c: 933e7b4 h: refs/heads/master v: v3
1 parent 99d5cc6 commit 21d93b8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 3739a2427bc66dc9a8ea4cb34bffee2fba6d107c
2+
refs/heads/master: 933e7b4a3ec1ca93af8fa1cacba0f9bf55fe9daf
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 8443b09e361b96d1f9b7f45a65ed0d31c0e86e70
55
refs/heads/try: 20cbbffeefc1f35e2ea63afce7b42fbd79611d42

trunk/src/librustc_llvm/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
#![feature(globs)]
2525
#![feature(link_args)]
26+
#![feature(unboxed_closures)]
2627

2728
extern crate libc;
2829

@@ -2206,7 +2207,7 @@ pub unsafe extern "C" fn rust_llvm_string_write_impl(sr: RustStringRef,
22062207
(*sr).borrow_mut().push_all(slice);
22072208
}
22082209

2209-
pub fn build_string(f: |RustStringRef|) -> Option<String> {
2210+
pub fn build_string<F>(f: F) -> Option<String> where F: FnOnce(RustStringRef){
22102211
let mut buf = RefCell::new(Vec::new());
22112212
f(&mut buf as RustStringRepr as RustStringRef);
22122213
String::from_utf8(buf.into_inner()).ok()

0 commit comments

Comments
 (0)