Skip to content

Commit f7ae75d

Browse files
committed
Drop unsafe_destructor
1 parent c85cbcc commit f7ae75d

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/lib.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
//! }
4444
//! ```
4545
#![doc(html_root_url="https://sfackler.github.io/rust-postgres/doc")]
46-
#![feature(unsafe_destructor, io, core, str_char)]
46+
#![feature(io, core, str_char)]
4747
#![cfg_attr(feature = "unix_socket", feature(convert))]
4848
#![warn(missing_docs)]
4949

@@ -1198,7 +1198,6 @@ impl<'a> fmt::Debug for Transaction<'a> {
11981198
}
11991199
}
12001200

1201-
#[unsafe_destructor]
12021201
impl<'conn> Drop for Transaction<'conn> {
12031202
fn drop(&mut self) {
12041203
if !self.finished {
@@ -1330,7 +1329,6 @@ impl<'a> fmt::Debug for Statement<'a> {
13301329
}
13311330
}
13321331

1333-
#[unsafe_destructor]
13341332
impl<'conn> Drop for Statement<'conn> {
13351333
fn drop(&mut self) {
13361334
let _ = self.finish_inner();
@@ -1880,7 +1878,6 @@ pub struct LazyRows<'trans, 'stmt> {
18801878
_trans: &'trans Transaction<'trans>,
18811879
}
18821880

1883-
#[unsafe_destructor]
18841881
impl<'a, 'b> Drop for LazyRows<'a, 'b> {
18851882
fn drop(&mut self) {
18861883
if !self.finished {
@@ -1979,7 +1976,6 @@ impl<'a> fmt::Debug for CopyInStatement<'a> {
19791976
}
19801977
}
19811978

1982-
#[unsafe_destructor]
19831979
impl<'a> Drop for CopyInStatement<'a> {
19841980
fn drop(&mut self) {
19851981
if !self.finished {

0 commit comments

Comments
 (0)