Skip to content

Commit a4c8206

Browse files
author
Jorge Aparicio
committed
---
yaml --- r: 169891 b: refs/heads/auto c: 1bbeb37 h: refs/heads/master i: 169889: 686264c 169887: cbc2406 v: v3
1 parent fba7f2b commit a4c8206

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1010
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1111
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1212
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13-
refs/heads/auto: d6a948e8f40b1d32d4760e0dfdc0c86df654cae6
13+
refs/heads/auto: 1bbeb375821fe197342f1e22ab53b796bb0f0c70
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/test/pretty/closure-reform-pretty.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515

1616
fn call_it(f: Box<FnMut(String) -> String>) { }
1717

18-
fn call_this(f: |&str|: Send) { }
18+
fn call_this<F>(f: F) where F: Fn(&str) + Send { }
1919

20-
fn call_that(f: <'a>|&'a int, &'a int| -> int) { }
20+
fn call_that<F>(f: F) where F: for<'a>Fn(&'a int, &'a int) -> int { }
2121

2222
fn call_extern(f: fn() -> int) { }
2323

branches/auto/src/test/pretty/disamb-stmt-expr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// preserved. They are needed to disambiguate `{return n+1}; - 0` from
1515
// `({return n+1}-0)`.
1616

17-
fn id(f: || -> int) -> int { f() }
17+
fn id<F>(f: F) -> int where F: Fn() -> int { f() }
1818

1919
fn wsucc(_n: int) -> int { id(|| { 1 }) - 0 }
2020
fn main() { }

branches/auto/src/test/pretty/do1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010

1111
// pp-exact
1212

13-
fn f(f: |int|) { f(10) }
13+
fn f<F>(f: F) where F: Fn(int) { f(10) }
1414

1515
fn main() { f(|i| { assert!(i == 10) }) }

branches/auto/src/test/pretty/fn-types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
// pp-exact
1212

1313
fn from_foreign_fn(_x: fn()) { }
14-
fn from_stack_closure(_x: ||) { }
14+
fn from_stack_closure<F>(_x: F) where F: Fn() { }
1515
fn main() { }

0 commit comments

Comments
 (0)