600 // FIXME: Keyword check?
601 let lifetime_ref = match &*lifetime.text() {
602▶ "" | "'" => LifetimeRef::Error,
603 "'static" => LifetimeRef::Static,
604 "'_" => LifetimeRef::Placeholder,
· · ·
636 .and_then(|it| self.lower_path(it, impl_trait_lower_fn))
637 .map(TypeRef::Path)
638▶ .unwrap_or(TypeRef::Error),
639 ast::Type::PtrType(inner) => {
640 let inner_ty = self.lower_type_ref_opt(inner.ty(), impl_trait_lower_fn);
· · ·
708 if self.outer_impl_trait {
709 // Disallow nested impl traits
710▶ TypeRef::Error
711 } else {
712 return self.with_outer_impl_trait_scope(true, |this| {
· · ·
734 return id;
735 }
736▶ None => TypeRef::Error,
737 },
738 };
· · ·
741
742 pub(crate) fn lower_type_ref_disallow_impl_trait(&mut self, node: ast::Type) -> TypeRefId {
743▶ self.lower_type_ref(node, &mut Self::impl_trait_error_allocator)
744 }
745
+ 28 more matches in this file