Skip to content

Commit e65ea66

Browse files
author
Jorge Aparicio
committed
---
yaml --- r: 186013 b: refs/heads/auto c: 7ad2e22 h: refs/heads/master i: 186011: b2ed7df v: v3
1 parent f77d398 commit e65ea66

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
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: cc8a5a0db7183fe3c233053bdadc6226f3dbd6e4
13+
refs/heads/auto: 7ad2e22e4ee1cfc5c6c4a53a6d19f2b853de1c6e
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/doc/reference.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3752,9 +3752,9 @@ An example of creating and calling a closure:
37523752
```rust
37533753
let captured_var = 10;
37543754

3755-
let closure_no_args = |&:| println!("captured_var={}", captured_var);
3755+
let closure_no_args = || println!("captured_var={}", captured_var);
37563756

3757-
let closure_args = |&: arg: i32| -> i32 {
3757+
let closure_args = |arg: i32| -> i32 {
37583758
println!("captured_var={}, arg={}", captured_var, arg);
37593759
arg // Note lack of semicolon after 'arg'
37603760
};

branches/auto/src/librustc/middle/const_eval.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ pub fn eval_const_expr_partial<'tcx>(tcx: &ty::ctxt<'tcx>,
257257
}
258258
}
259259
(Ok(const_int(a)), Ok(const_int(b))) => {
260-
let is_a_min_value = |&:| {
260+
let is_a_min_value = || {
261261
let int_ty = match ty::expr_ty_opt(tcx, e).map(|ty| &ty.sty) {
262262
Some(&ty::ty_int(int_ty)) => int_ty,
263263
_ => return false

branches/auto/src/librustc_typeck/check/dropck.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ fn iterate_over_potentially_unsafe_regions_in_type<'a, 'tcx>(
4545
scope: region::CodeExtent,
4646
depth: uint)
4747
{
48-
let origin = |&:| infer::SubregionOrigin::SafeDestructor(span);
48+
let origin = || infer::SubregionOrigin::SafeDestructor(span);
4949
let mut walker = ty_root.walk();
5050
let opt_phantom_data_def_id = rcx.tcx().lang_items.phantom_data();
5151

branches/auto/src/libstd/sys/unix/process2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ impl Process {
274274
// file descriptor. Otherwise, the first file descriptor opened
275275
// up in the child would be numbered as one of the stdio file
276276
// descriptors, which is likely to wreak havoc.
277-
let setup = |&: src: Option<AnonPipe>, dst: c_int| {
277+
let setup = |src: Option<AnonPipe>, dst: c_int| {
278278
let src = match src {
279279
None => {
280280
let flags = if dst == libc::STDIN_FILENO {

branches/auto/src/libstd/sys/windows/process2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ impl Process {
160160
// Similarly to unix, we don't actually leave holes for the stdio file
161161
// descriptors, but rather open up /dev/null equivalents. These
162162
// equivalents are drawn from libuv's windows process spawning.
163-
let set_fd = |&: fd: &Option<AnonPipe>, slot: &mut HANDLE,
163+
let set_fd = |fd: &Option<AnonPipe>, slot: &mut HANDLE,
164164
is_stdin: bool| {
165165
match *fd {
166166
None => {

0 commit comments

Comments
 (0)