1
Fork 0

Rollup merge of #22884 - japaric:obsolete, r=alexcrichton

This is leftover from #21843

If you still have `|&:| {}` closures in your code, simply remove the `&:` part.

[breaking-change]
This commit is contained in:
Manish Goregaokar 2015-02-28 13:56:29 +05:30
commit 040a811b91
7 changed files with 24 additions and 7 deletions

View file

@ -274,7 +274,7 @@ impl Process {
// file descriptor. Otherwise, the first file descriptor opened
// up in the child would be numbered as one of the stdio file
// descriptors, which is likely to wreak havoc.
let setup = |&: src: Option<AnonPipe>, dst: c_int| {
let setup = |src: Option<AnonPipe>, dst: c_int| {
let src = match src {
None => {
let flags = if dst == libc::STDIN_FILENO {