Skip to content

Commit fe49cbe

Browse files
committed
libsyntax: Remove Send from PtrTy in deriving.
It'll be complex to port to the new explicit-self regime and it seems to be unused.
1 parent 357d5cd commit fe49cbe

File tree

1 file changed

+0
-6
lines changed
  • src/libsyntax/ext/deriving/generic

1 file changed

+0
-6
lines changed

src/libsyntax/ext/deriving/generic/ty.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ use std::gc::Gc;
2525

2626
/// The types of pointers
2727
pub enum PtrTy<'a> {
28-
/// ~
29-
Send,
3028
/// &'lifetime mut
3129
Borrowed(Option<&'a str>, ast::Mutability),
3230
}
@@ -138,9 +136,6 @@ impl<'a> Ty<'a> {
138136
Ptr(ref ty, ref ptr) => {
139137
let raw_ty = ty.to_ty(cx, span, self_ty, self_generics);
140138
match *ptr {
141-
Send => {
142-
cx.ty_uniq(span, raw_ty)
143-
}
144139
Borrowed(ref lt, mutbl) => {
145140
let lt = mk_lifetime(cx, span, lt);
146141
cx.ty_rptr(span, raw_ty, lt, mutbl)
@@ -260,7 +255,6 @@ pub fn get_explicit_self(cx: &ExtCtxt, span: Span, self_ptr: &Option<PtrTy>)
260255
let self_ty = respan(
261256
span,
262257
match *ptr {
263-
Send => ast::SelfUniq(special_idents::self_),
264258
Borrowed(ref lt, mutbl) => {
265259
let lt = lt.map(|s| cx.lifetime(span, cx.ident_of(s).name));
266260
ast::SelfRegion(lt, mutbl, special_idents::self_)

0 commit comments

Comments
 (0)