Home
last modified time | relevance | path

Searched refs:self_ty (Results 1 – 18 of 18) sorted by relevance

/external/rust/crates/pin-project-internal/src/
Dpinned_drop.rs21 if let Type::Path(self_ty) = &*input.self_ty { in attribute()
37 impl #impl_generics ::pin_project::__private::PinnedDrop for #self_ty in attribute()
64 return Err(error!(item.self_ty, INVALID_ITEM)); in validate_impl()
74 match &*item.self_ty { in validate_impl()
210 let self_ty = if let Type::Path(ty) = &*item.self_ty { ty } else { unreachable!() }; in expand_impl() localVariable
211 let mut visitor = ReplaceReceiver(self_ty); in expand_impl()
Dutils.rs184 fn self_ty(&self, span: Span) -> TypePath { in self_ty() method
206 ty: Box::new(self.self_ty(span).into()), in self_to_qself()
228 let self_ty = self.self_ty(first.ident.span()); in self_to_expr_path() localVariable
229 let variant = mem::replace(path, self_ty.path); in self_to_expr_path()
253 let self_ty = self.self_ty(ident.span()); in visit_token_stream() localVariable
262 out.extend(quote_spanned!(span=> <#self_ty>)) in visit_token_stream()
264 _ => out.extend(quote!(#self_ty)), in visit_token_stream()
268 _ => out.extend(quote!(#self_ty)), in visit_token_stream()
296 *ty = self.self_ty(node.path.segments[0].ident.span()).into(); in visit_type_mut()
/external/rust/crates/serde_derive/src/internals/
Dreceiver.rs12 let self_ty = { in replace_receiver() localVariable
17 let mut visitor = ReplaceReceiver(&self_ty); in replace_receiver()
25 fn self_ty(&self, span: Span) -> TypePath { in self_ty() method
44 ty: Box::new(Type::Path(self.self_ty(span))), in self_to_qself()
57 let self_ty = self.self_ty(path.segments[0].ident.span()); in self_to_expr_path() localVariable
58 let variant = mem::replace(path, self_ty.path); in self_to_expr_path()
87 *ty = self.self_ty(span).into(); in visit_type_mut()
/external/rust/cxx/syntax/
Dparse.rs903 let self_ty = &imp.self_ty; in parse_impl() localVariable
904 let span = quote!(#bang #path #for_token #self_ty); in parse_impl()
942 let mut self_ty = *imp.self_ty; in parse_impl() localVariable
943 if let RustType::Verbatim(ty) = &self_ty { in parse_impl()
950 self_ty = syn::parse2(ty)?; in parse_impl()
956 let ty = parse_type(&self_ty)?; in parse_impl()
/external/rust/crates/pin-project/tests/ui/pinned_drop/
Dinvalid.rs207 mod self_ty { module
/external/rust/crates/pin-project/tests/
Dpinned_drop.rs57 fn self_ty() { in self_ty() function
/external/rust/crates/syn/src/
Ditem.rs194 pub self_ty: Box<Type>,
2492 let self_ty: Type; in parse_impl() localVariable
2514 self_ty = input.parse()?; in parse_impl()
2517 self_ty = if polarity.is_none() { in parse_impl()
2545 self_ty: Box::new(self_ty), in parse_impl()
3021 self.self_ty.to_tokens(tokens); in to_tokens()
/external/rust/crates/pin-project-internal/src/pin_project/
Dderive.rs26 let self_ty = parse_quote!(#ident #ty_generics); in parse_derive() localVariable
27 let mut visitor = ReplaceReceiver(&self_ty); in parse_derive()
/external/rust/crates/async-trait/src/
Dexpand.rs89 lifetimes.visit_type_mut(&mut *input.self_ty); in expand()
/external/rust/crates/syn/tests/common/
Deq.rs305 spanless_eq_struct!(ImplKind; unsafety polarity defaultness constness generics of_trait self_ty ite…
/external/rust/crates/syn/src/gen/
Dclone.rs1141 self_ty: self.self_ty.clone(), in clone()
Deq.rs1146 && self.self_ty == other.self_ty in eq()
Dfold.rs1981 self_ty: Box::new(f.fold_type(*node.self_ty)), in fold_item_impl()
Dhash.rs1501 self.self_ty.hash(state); in hash()
Ddebug.rs1619 formatter.field("self_ty", &self.self_ty); in fmt()
Dvisit_mut.rs2308 v.visit_type_mut(&mut *node.self_ty); in visit_item_impl_mut()
Dvisit.rs2302 v.visit_type(&*node.self_ty); in visit_item_impl()
/external/rust/crates/syn/tests/debug/
Dgen.rs2698 formatter.field("self_ty", Lite(&_val.self_ty)); in fmt()
3107 formatter.field("self_ty", Lite(&_val.self_ty)); in fmt()