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

Rollup of 9 pull requests #52123

Merged
merged 26 commits into from
Jul 7, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
7eba13f
Correctly handle an activation from dead code.
davidtwco Jul 4, 2018
aeb1682
Ensure that borrows wind up unactivated.
davidtwco Jul 4, 2018
f90eada
Improve comments.
davidtwco Jul 4, 2018
37228fe
reverse_postorder
csmoe Jul 5, 2018
0e31e2f
Remove rustc_mir_borrowck attribute and use rustc_mir instead
spastorino Jul 4, 2018
e7e8c72
update test
csmoe Jul 5, 2018
25266c1
Do not run AST borrowck when -Zborrowck=mir
spastorino Jul 5, 2018
bbfdea2
typo-fix stable ed'n error: "an onlyavailable" → "and only available"
zackmdavis Jul 6, 2018
7fbc389
Stabilize rc_downcast
tmccombs Jul 6, 2018
15a196e
Remove unnecessary feature gate.
tmccombs Jul 6, 2018
933c299
Dedupe filetime
Eijebong Jul 6, 2018
b7047bb
ARM: expose the "mclass" target feature
japaric Jul 6, 2018
6e2c49f
Use an aligned dangling pointer in Weak::new, rather than address 1
SimonSapin Jun 29, 2018
41730b7
Rc: remove unused allocation from Weak::new()
SimonSapin Jun 27, 2018
21526c5
Add a test for Weak::new() not crashing for uninhabited types
SimonSapin Jun 27, 2018
5717d99
Add some unit tests for dangling Weak references
SimonSapin Jul 6, 2018
67202b8
Fix is_dangling import when Arc is #[cfg]’ed out
SimonSapin Jul 6, 2018
9b3ec57
Rollup merge of #51901 - rust-lang:weak-unboxing, r=alexcrichton
Mark-Simulacrum Jul 7, 2018
b71b921
Rollup merge of #52058 - davidtwco:issue-51345, r=nikomatsakis
Mark-Simulacrum Jul 7, 2018
ec6bba3
Rollup merge of #52067 - csmoe:issue-51167, r=nikomatsakis
Mark-Simulacrum Jul 7, 2018
54a440b
Rollup merge of #52083 - spastorino:dont-run-ast-borrowck-on-mir-mode…
Mark-Simulacrum Jul 7, 2018
9672933
Rollup merge of #52099 - zackmdavis:and_the_case_of_the_typ, r=oli-obk
Mark-Simulacrum Jul 7, 2018
e382338
Rollup merge of #52103 - tmccombs:rc_downcast, r=Mark-Simulacrum
Mark-Simulacrum Jul 7, 2018
f69baa9
Rollup merge of #52104 - tmccombs:repr_trans_stable, r=Mark-Simulacrum
Mark-Simulacrum Jul 7, 2018
4784883
Rollup merge of #52117 - Eijebong:filetime, r=alexcrichton
Mark-Simulacrum Jul 7, 2018
cd7ddae
Rollup merge of #52120 - japaric:mclass, r=alexcrichton
Mark-Simulacrum Jul 7, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Stabilize rc_downcast
Fixes #44608
  • Loading branch information
tmccombs committed Jul 6, 2018
commit 7fbc3895e359b9212bc0a78692198f15bbe462b5
3 changes: 1 addition & 2 deletions src/liballoc/rc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -620,13 +620,12 @@ impl<T: Clone> Rc<T> {

impl Rc<Any> {
#[inline]
#[unstable(feature = "rc_downcast", issue = "44608")]
#[stable(feature = "rc_downcast", since = "1.29.0")]
/// Attempt to downcast the `Rc<Any>` to a concrete type.
///
/// # Examples
///
/// ```
/// #![feature(rc_downcast)]
/// use std::any::Any;
/// use std::rc::Rc;
///
Expand Down
3 changes: 1 addition & 2 deletions src/liballoc/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -981,13 +981,12 @@ unsafe impl<#[may_dangle] T: ?Sized> Drop for Arc<T> {

impl Arc<Any + Send + Sync> {
#[inline]
#[unstable(feature = "rc_downcast", issue = "44608")]
#[stable(feature = "rc_downcast", since = "1.29.0")]
/// Attempt to downcast the `Arc<Any + Send + Sync>` to a concrete type.
///
/// # Examples
///
/// ```
/// #![feature(rc_downcast)]
/// use std::any::Any;
/// use std::sync::Arc;
///
Expand Down