Skip to content

Renamed Arc::try_unique to get_mut #24053

New issue

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

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

Already on GitHub? # to your account

Merged
merged 2 commits into from
Apr 5, 2015
Merged

Renamed Arc::try_unique to get_mut #24053

merged 2 commits into from
Apr 5, 2015

Conversation

kvark
Copy link
Contributor

@kvark kvark commented Apr 4, 2015

As requested by @kballard in #23844

@rust-highfive
Copy link
Contributor

r? @pcwalton

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

@kvark
Copy link
Contributor Author

kvark commented Apr 4, 2015

Hmm, the doc check gives me these errors, which I don't know how to fix:

---- arc::get_mut_0 stdout ----
        <anon>:6:22: 6:27 error: unresolved import `alloc::arc::Arc`. Did you mean `self::alloc::arc`?
<anon>:6     use alloc::arc::{Arc, get_mut};
                              ^~~~~
<anon>:6:27: 6:32 error: unresolved import `alloc::arc::get_mut`. Did you mean `self::alloc::arc`?
<anon>:6     use alloc::arc::{Arc, get_mut};
                                   ^~~~~

///
/// # Examples
///
/// ```
/// # #![feature(alloc)]
/// extern crate alloc;
/// # fn main() {
Copy link
Member

Choose a reason for hiding this comment

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

I think you'll want to leave this fn main wrapper as otherwise the extern crate alloc is injected into the wrong scope.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, that explains it ;)

@alexcrichton alexcrichton assigned alexcrichton and unassigned pcwalton Apr 4, 2015
@kvark kvark force-pushed the get_mut branch 2 times, most recently from f9a4d31 to ec8faf2 Compare April 4, 2015 23:00
@kvark
Copy link
Contributor Author

kvark commented Apr 4, 2015

@alexcrichton Please have another look.

@alexcrichton
Copy link
Member

@bors: r+ bc1aef3

@bors
Copy link
Collaborator

bors commented Apr 5, 2015

⌛ Testing commit bc1aef3 with merge 6d78aa6...

@bors
Copy link
Collaborator

bors commented Apr 5, 2015

💔 Test failed - auto-mac-64-nopt-t

@Manishearth
Copy link
Member

thread '<unnamed>' panicked at 'assertion failed: !p.wait().unwrap().success()', /Users/rustbuild/src/rust-buildbot/slave/auto-mac-64-nopt-t/build/src/libstd/old_io/process.rs:1139
test old_io::process::tests::test_kill ... FAILED

Might be an intermittent?

@kvark
Copy link
Contributor Author

kvark commented Apr 5, 2015

This error seems unrelated

@Manishearth
Copy link
Member

@bors: retry

@Manishearth
Copy link
Member

(If it passes this time around, we should file it as an intermittent)

@bors
Copy link
Collaborator

bors commented Apr 5, 2015

⌛ Testing commit bc1aef3 with merge de6742b...

bors added a commit that referenced this pull request Apr 5, 2015
@bors bors merged commit bc1aef3 into rust-lang:master Apr 5, 2015
@Manishearth Manishearth mentioned this pull request Apr 5, 2015
13 tasks
@kvark kvark deleted the get_mut branch April 5, 2015 21:35
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants