Skip to content

Commit

Permalink
Added the param-blindness attribute to Rc and Arc.
Browse files Browse the repository at this point in the history
This was proven necessary after I added `Rc` and `Arc` to the rpass
test `dropck_legal_cycles.rs`; see PR #28929.
  • Loading branch information
pnkfelix committed Oct 9, 2015
1 parent e1aba75 commit 34076bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/liballoc/arc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,7 @@ impl<T: ?Sized> Drop for Arc<T> {
///
/// } // implicit drop
/// ```
#[unsafe_destructor_blind_to_params]
#[inline]
fn drop(&mut self) {
// This structure has #[unsafe_no_drop_flag], so this drop glue may run
Expand Down
1 change: 1 addition & 0 deletions src/liballoc/rc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ impl<T: ?Sized> Drop for Rc<T> {
///
/// } // implicit drop
/// ```
#[unsafe_destructor_blind_to_params]
fn drop(&mut self) {
unsafe {
let ptr = *self._ptr;
Expand Down

0 comments on commit 34076bc

Please sign in to comment.