diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-06-25 17:15:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-25 17:15:33 +0200 |
| commit | 61fae230e626bd46e8043ba55bae861d824ea6b5 (patch) | |
| tree | b2bd4afa01d5223cbc1178e3be62cdc8632c0b51 /src/libsyntax_ext | |
| parent | c5e60691943b72a09e007cb2358957d9446df36a (diff) | |
| parent | e1d871e2d97f8afe056642c6afc433c7d1d1ee1d (diff) | |
| download | rust-61fae230e626bd46e8043ba55bae861d824ea6b5.tar.gz rust-61fae230e626bd46e8043ba55bae861d824ea6b5.zip | |
Rollup merge of #62078 - petrochenkov:nosendync2, r=varkor
Remove built-in derive macros `Send` and `Sync` Closes https://github.com/rust-lang/rust/issues/62050
Diffstat (limited to 'src/libsyntax_ext')
| -rw-r--r-- | src/libsyntax_ext/deriving/bounds.rs | 8 | ||||
| -rw-r--r-- | src/libsyntax_ext/deriving/mod.rs | 2 |
2 files changed, 0 insertions, 10 deletions
diff --git a/src/libsyntax_ext/deriving/bounds.rs b/src/libsyntax_ext/deriving/bounds.rs index c7b805e0bdc..d5b8a00c75b 100644 --- a/src/libsyntax_ext/deriving/bounds.rs +++ b/src/libsyntax_ext/deriving/bounds.rs @@ -6,14 +6,6 @@ use syntax::ast::MetaItem; use syntax::ext::base::{Annotatable, ExtCtxt}; use syntax_pos::Span; -pub fn expand_deriving_unsafe_bound(cx: &mut ExtCtxt<'_>, - span: Span, - _: &MetaItem, - _: &Annotatable, - _: &mut dyn FnMut(Annotatable)) { - cx.span_err(span, "this unsafe trait should be implemented explicitly"); -} - pub fn expand_deriving_copy(cx: &mut ExtCtxt<'_>, span: Span, mitem: &MetaItem, diff --git a/src/libsyntax_ext/deriving/mod.rs b/src/libsyntax_ext/deriving/mod.rs index e75eff2e857..aa9913d436c 100644 --- a/src/libsyntax_ext/deriving/mod.rs +++ b/src/libsyntax_ext/deriving/mod.rs @@ -111,8 +111,6 @@ derive_traits! { "Default" => default::expand_deriving_default, - "Send" => bounds::expand_deriving_unsafe_bound, - "Sync" => bounds::expand_deriving_unsafe_bound, "Copy" => bounds::expand_deriving_copy, // deprecated |
