596 // FIXME: Keyword check?
597 let lifetime_ref = match &*lifetime.text() {
598▶ "" | "'" => LifetimeRef::Error,
599 "'static" => LifetimeRef::Static,
600 "'_" => LifetimeRef::Placeholder,
· · ·
632 .and_then(|it| self.lower_path(it, impl_trait_lower_fn))
633 .map(TypeRef::Path)
634▶ .unwrap_or(TypeRef::Error),
635 ast::Type::PtrType(inner) => {
636 let inner_ty = self.lower_type_ref_opt(inner.ty(), impl_trait_lower_fn);
· · ·
709 if self.outer_impl_trait {
710 // Disallow nested impl traits
711▶ TypeRef::Error
712 } else {
713 return self.with_outer_impl_trait_scope(true, |this| {
· · ·
731 return id;
732 }
733▶ None => TypeRef::Error,
734 },
735 };
· · ·
738
739 pub(crate) fn lower_type_ref_disallow_impl_trait(&mut self, node: ast::Type) -> TypeRefId {
740▶ self.lower_type_ref(node, &mut Self::impl_trait_error_allocator)
741 }
742
+ 27 more matches in this file