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

Rename unwrap functions to into_inner #19149

Merged
merged 1 commit into from
Nov 25, 2014
Merged

Conversation

alexcrichton
Copy link
Member

This change applies the conventions to unwrap listed in RFC 430 to rename
non-failing unwrap methods to into_inner. This is a breaking change, but all
unwrap methods are retained as #[deprecated] for the near future. To update
code rename unwrap method calls to into_inner.

[breaking-change]

cc #19091

@rust-highfive
Copy link
Collaborator

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!

@@ -257,11 +257,15 @@ impl<T> RefCell<T> {

/// Consumes the `RefCell`, returning the wrapped value.
#[unstable = "may be renamed, depending on global conventions"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you adjust this comment to say: "recently renamed per RFC 430"?

@aturon
Copy link
Member

aturon commented Nov 20, 2014

r=me modulo stability nit.

@aturon
Copy link
Member

aturon commented Nov 20, 2014

BTW this should close #13159

@alexcrichton alexcrichton force-pushed the issue-19091 branch 2 times, most recently from 9d4b10e to c6b651b Compare November 21, 2014 22:17
alexcrichton added a commit to alexcrichton/rust that referenced this pull request Nov 22, 2014
This change applies the conventions to unwrap listed in [RFC 430][rfc] to rename
non-failing `unwrap` methods to `into_inner`. This is a breaking change, but all
`unwrap` methods are retained as `#[deprecated]` for the near future. To update
code rename `unwrap` method calls to `into_inner`.

[rfc]: rust-lang/rfcs#430
[breaking-change]

Closes rust-lang#13159
cc rust-lang#19091
bors added a commit that referenced this pull request Nov 25, 2014
This change applies the conventions to unwrap listed in [RFC 430][rfc] to rename
non-failing `unwrap` methods to `into_inner`. This is a breaking change, but all
`unwrap` methods are retained as `#[deprecated]` for the near future. To update
code rename `unwrap` method calls to `into_inner`.

[rfc]: rust-lang/rfcs#430
[breaking-change]

cc #19091
@bors bors closed this Nov 25, 2014
@bors bors merged commit f1f6c12 into rust-lang:master Nov 25, 2014
@alexcrichton alexcrichton deleted the issue-19091 branch December 28, 2014 06:44
CryZe added a commit to CryZe/rust that referenced this pull request Sep 21, 2016
A long time ago non-panicking `unwrap` methods were renamed to `into_inner` in this Pull Request: rust-lang#19149

Looks like this doc comment was not updated however.
sophiajt pushed a commit to sophiajt/rust that referenced this pull request Sep 22, 2016
Fix outdated Doc Comment on BufReader::seek

A long time ago non-panicking `unwrap` methods were renamed to `into_inner` in this Pull Request: rust-lang#19149

Looks like this doc comment was not updated however.
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.

4 participants