Skip to content

Commit

Permalink
libsyntax: Remove Send from PtrTy in deriving.
Browse files Browse the repository at this point in the history
It'll be complex to port to the new explicit-self regime and it seems to
be unused.
  • Loading branch information
pcwalton committed Jul 17, 2014
1 parent 357d5cd commit fe49cbe
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/libsyntax/ext/deriving/generic/ty.rs
Expand Up @@ -25,8 +25,6 @@ use std::gc::Gc;

/// The types of pointers
pub enum PtrTy<'a> {
/// ~
Send,
/// &'lifetime mut
Borrowed(Option<&'a str>, ast::Mutability),
}
Expand Down Expand Up @@ -138,9 +136,6 @@ impl<'a> Ty<'a> {
Ptr(ref ty, ref ptr) => {
let raw_ty = ty.to_ty(cx, span, self_ty, self_generics);
match *ptr {
Send => {
cx.ty_uniq(span, raw_ty)
}
Borrowed(ref lt, mutbl) => {
let lt = mk_lifetime(cx, span, lt);
cx.ty_rptr(span, raw_ty, lt, mutbl)
Expand Down Expand Up @@ -260,7 +255,6 @@ pub fn get_explicit_self(cx: &ExtCtxt, span: Span, self_ptr: &Option<PtrTy>)
let self_ty = respan(
span,
match *ptr {
Send => ast::SelfUniq(special_idents::self_),
Borrowed(ref lt, mutbl) => {
let lt = lt.map(|s| cx.lifetime(span, cx.ident_of(s).name));
ast::SelfRegion(lt, mutbl, special_idents::self_)
Expand Down

0 comments on commit fe49cbe

Please sign in to comment.