Lines Matching full:let

300             let allow_plus = true;  in parse()
301 let allow_group_generic = true; in parse()
314 let allow_plus = false; in without_plus()
315 let allow_group_generic = true; in without_plus()
325 let begin = input.fork(); in ambig_ty()
328 let mut group: TypeGroup = input.parse()?; in ambig_ty()
330 if let Type::Path(mut ty) = *group.elem { in ambig_ty()
348 if let Type::Path(mut ty) = *group.elem { in ambig_ty()
349 let arguments = &mut ty.path.segments.last_mut().unwrap().arguments; in ambig_ty()
362 let mut lifetimes = None::<BoundLifetimes>; in ambig_ty()
363 let mut lookahead = input.lookahead1(); in ambig_ty()
382 let content; in ambig_ty()
383 let paren_token = parenthesized!(content in input); in ambig_ty()
400 let mut bounds = Punctuated::new(); in ambig_ty()
405 while let Some(plus) = input.parse()? { in ambig_ty()
408 let allow_precise_capture = false; in ambig_ty()
409 let allow_const = false; in ambig_ty()
421 let mut first: Type = content.parse()?; in ambig_ty()
426 let mut elems = Punctuated::new(); in ambig_ty()
442 let first = match first { in ambig_ty()
479 let mut bounds = Punctuated::new(); in ambig_ty()
481 while let Some(plus) = input.parse()? { in ambig_ty()
484 let allow_precise_capture = false; in ambig_ty()
485 let allow_const = false; in ambig_ty()
506 let mut bare_fn: TypeBareFn = input.parse()?; in ambig_ty()
517 let ty: TypePath = input.parse()?; in ambig_ty()
523 let bang_token: Token![!] = input.parse()?; in ambig_ty()
524 let (delimiter, tokens) = mac::parse_delimiter(input)?; in ambig_ty()
536 let mut bounds = Punctuated::new(); in ambig_ty()
555 let allow_precise_capture = false; in ambig_ty()
556 let allow_const = false; in ambig_ty()
569 let dyn_token: Token![dyn] = input.parse()?; in ambig_ty()
570 let dyn_span = dyn_token.span; in ambig_ty()
571 let star_token: Option<Token![*]> = input.parse()?; in ambig_ty()
572 let bounds = TypeTraitObject::parse_bounds(dyn_span, input, allow_plus)?; in ambig_ty()
582 let content; in ambig_ty()
583 let bracket_token = bracketed!(content in input); in ambig_ty()
584 let elem: Type = content.parse()?; in ambig_ty()
618 let content; in parse()
629 let content; in parse()
642 let star_token: Token![*] = input.parse()?; in parse()
644 let lookahead = input.lookahead1(); in parse()
645 let (const_token, mutability) = if lookahead.peek(Token![const]) { in parse()
678 let args; in parse()
679 let mut variadic = None; in parse()
688 let mut inputs = Punctuated::new(); in parse()
691 let attrs = args.call(Attribute::parse_outer)?; in parse()
703 let allow_self = inputs.is_empty(); in parse()
704 let arg = parse_bare_fn_arg(&args, allow_self)?; in parse()
710 let comma = args.parse()?; in parse()
743 let content; in parse()
744 let paren_token = parenthesized!(content in input); in parse()
753 let first: Type = content.parse()?; in parse()
757 let mut elems = Punctuated::new(); in parse()
785 let expr_style = false; in parse()
786 let (qself, path) = path::parsing::qpath(input, expr_style)?; in parse()
794 let allow_plus = false; in without_plus()
800 let arrow = input.parse()?; in parse()
801 let allow_group_generic = true; in parse()
802 let ty = ambig_ty(input, allow_plus, allow_group_generic)?; in parse()
813 let allow_plus = true; in parse()
821 let allow_plus = true; in parse()
829 let allow_plus = false; in without_plus()
835 let dyn_token: Option<Token![dyn]> = input.parse()?; in parse()
836 let dyn_span = match &dyn_token { in parse()
840 let bounds = Self::parse_bounds(dyn_span, input, allow_plus)?; in parse()
849 let allow_precise_capture = false; in parse_bounds()
850 let allow_const = false; in parse_bounds()
851 let bounds = TypeParamBound::parse_multiple( in parse_bounds()
857 let mut last_lifetime_span = None; in parse_bounds()
858 let mut at_least_one_trait = false; in parse_bounds()
875 let msg = "at least one trait is required for an object type"; in parse_bounds()
885 let allow_plus = true; in parse()
893 let allow_plus = false; in without_plus()
898 let impl_token: Token![impl] = input.parse()?; in parse()
899 let allow_precise_capture = true; in parse()
900 let allow_const = true; in parse()
901 let bounds = TypeParamBound::parse_multiple( in parse()
907 let mut last_nontrait_span = None; in parse()
908 let mut at_least_one_trait = false; in parse()
937 let msg = "at least one trait must be specified"; in parse()
951 let group = crate::group::parse_group(input)?; in parse()
962 let allow_plus = false; in parse()
969 let content; in parse()
973 let allow_group_generic = true; in parse()
983 let allow_self = false; in parse()
989 let attrs = input.call(Attribute::parse_outer)?; in parse_bare_fn_arg()
991 let begin = input.fork(); in parse_bare_fn_arg()
993 let has_mut_self = allow_self && input.peek(Token![mut]) && input.peek2(Token![self]); in parse_bare_fn_arg()
998 let mut has_self = false; in parse_bare_fn_arg()
999 let mut name = if (input.peek(Ident) || input.peek(Token![_]) || { in parse_bare_fn_arg()
1005 let name = input.call(Ident::parse_any)?; in parse_bare_fn_arg()
1006 let colon: Token![:] = input.parse()?; in parse_bare_fn_arg()
1013 let ty = if allow_self && !has_self && input.peek(Token![mut]) && input.peek2(Token![self]) in parse_bare_fn_arg()
1025 let ty = match ty { in parse_bare_fn_arg()
1040 let name = input.call(Ident::parse_any)?; in parse_bare_variadic()
1041 let colon: Token![:] = input.parse()?; in parse_bare_variadic()
1140 if let Some(variadic) = &self.variadic { in to_tokens()
1142 let span = variadic.dots.spans[0]; in to_tokens()
1245 if let Some((name, colon)) = &self.name { in to_tokens()
1257 if let Some((name, colon)) = &self.name { in to_tokens()