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

Backport mem::forget to beta #25299

Merged
merged 4 commits into from
May 11, 2015
Merged

Backport mem::forget to beta #25299

merged 4 commits into from
May 11, 2015

Conversation

alexcrichton
Copy link
Member

This is the last beta-nominated/beta-accepted we've got listed, so this is the backport of #25187.

r? @brson

alexcrichton and others added 4 commits May 10, 2015 23:16
This commit is an implementation of [RFC 1066][rfc] where the conclusion was
that leaking a value is a safe operation in Rust code, so updating the signature
of this function follows suit.

[rfc]: https://github.com/rust-lang/rfcs/blob/master/text/1066-safe-mem-forget.md

Closes rust-lang#25186
…orrow instead of AsRef

Conflicts:
	src/libcollections/slice.rs
	src/libcollections/str.rs
@alexcrichton
Copy link
Member Author

Er actually, I just noticed we have a few beta-nominated but not accepted, so I've included two nominated PRs which I suspect will also be accepted, cc @aturon

@alexcrichton
Copy link
Member Author

I've removed #25212 as there was a conflict which caused a build failure, and @pnkfelix will take over doing the backport in a separate PR.

brson added a commit that referenced this pull request May 11, 2015
@brson brson merged commit fd815b7 into rust-lang:beta May 11, 2015
@alexcrichton alexcrichton deleted the beta-backport branch May 11, 2015 18:22
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.

3 participants