Skip to content

implement Clone for Box<str>, closes #27323 #27371

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

Merged
merged 1 commit into from
Jul 30, 2015
Merged

Conversation

Gankra
Copy link
Contributor

@Gankra Gankra commented Jul 29, 2015

This is a minor [breaking-change], as it changes what
boxed_str.to_owned() does (previously it would deref to &str and
call to_owned on that to get a String). However Box<str> is such an
exceptionally rare type that this is not expected to be a serious
concern. Also a Box<str> can be freely converted to a String to
obtain the previous result anyway.

@rust-highfive
Copy link
Contributor

r? @alexcrichton

(rust_highfive has picked a reviewer for you, use r? to override)

@Gankra Gankra force-pushed the str-clone branch 4 times, most recently from e527636 to b92c494 Compare July 29, 2015 00:54
@alexcrichton
Copy link
Member

r=me with a [breaking-change] tag in the commit and some tests to accompany this

@alexcrichton alexcrichton added the relnotes Marks issues that should be documented in the release notes of the next release. label Jul 29, 2015
This is a minor [breaking-change], as it changes what
`boxed_str.to_owned()` does (previously it would deref to `&str` and
call `to_owned` on that to get a `String`). However `Box<str>` is such an
exceptionally rare type that this is not expected to be a serious
concern. Also a `Box<str>` can be freely converted to a `String` to
obtain the previous behaviour anyway.
@Gankra
Copy link
Contributor Author

Gankra commented Jul 30, 2015

@bors r=alexcrichton

@bors
Copy link
Collaborator

bors commented Jul 30, 2015

📌 Commit 3e954a8 has been approved by alexcrichton

@bors
Copy link
Collaborator

bors commented Jul 30, 2015

⌛ Testing commit 3e954a8 with merge 87055a6...

bors added a commit that referenced this pull request Jul 30, 2015
This is a minor [breaking-change], as it changes what
`boxed_str.to_owned()` does (previously it would deref to `&str` and
call `to_owned` on that to get a `String`). However `Box<str>` is such an
exceptionally rare type that this is not expected to be a serious
concern. Also a `Box<str>` can be freely converted to a `String` to
obtain the previous result anyway.
@bors bors merged commit 3e954a8 into rust-lang:master Jul 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
relnotes Marks issues that should be documented in the release notes of the next release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants