Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AioCb::from_boxed_slice #576

Closed
wants to merge 26 commits into from
Closed

Conversation

asomers
Copy link
Member

@asomers asomers commented Apr 14, 2017

The existing AioCb constructors work for simple programs where
everything is stored on the stack. But in more complicated programs the
borrow checker can't prove that a buffer will outlive the AioCb that
references it. Fix this problem by introducting
AioCb::from_boxed_slice, which takes a reference-counted buffer.

Fixes #575

berkowski and others added 26 commits April 9, 2017 07:41
Added:
  - arm-unknown-linux-gnueabi
  - arm-unknown-linux-musleabi

Removed:
  - powerpc64-unknown-linux-gnu (not suppported by nix)
  - mips64el-unknown-linux-gnu (not suppported by nix)
  - mipsel-unknown-linux-gnu (not suppported by nix)
Removed:
  - mips64-unknown-linux-gnu
  - mips64el-unknown-linux-gnu
  - arm-unknown-linux-musleabi
Fixes nix-rust#529, also refer to
nix-rust#529 which first added this
for the old CI infrastructure.

Signed-off-by: Paul Osborne <osbpau@gmail.com>
We need to raise it up to 1.13 because our test infrastructure requires it
The existing AioCb constructors work for simple programs where
everything is stored on the stack.  But in more complicated programs the
borrow checker can't prove that a buffer will outlive the AioCb that
references it.  Fix this problem by introducting
AioCb::from_boxed_slice, which takes a reference-counted buffer.

Fixes nix-rust#575
@homu
Copy link
Contributor

homu commented Apr 15, 2017

☔ The latest upstream changes (presumably a076c7f) made this pull request unmergeable. Please resolve the merge conflicts.

@Susurrus Susurrus changed the base branch from new-ci/master to master April 15, 2017 17:43
@Susurrus
Copy link
Contributor

Can you rebase onto master and update this PR? The new-ci/master branch is only being used for developing the new CI framework.

@asomers
Copy link
Member Author

asomers commented Apr 15, 2017

Nope. Can't rebase to master because of issue #567 . But I can wait until new-ci/master is merged.

@Susurrus
Copy link
Contributor

Indeed, hoping to merge it today.

@asomers
Copy link
Member Author

asomers commented Apr 15, 2017

Replaced by the rebased PR #582

@asomers asomers closed this Apr 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants