Lines Matching refs:allow_const
715 let allow_const = true; in parse() localVariable
716 TypeParamBound::parse_single(input, allow_precise_capture, allow_const)? in parse()
748 let allow_const = true; in parse() localVariable
749 Self::parse_single(input, allow_precise_capture, allow_const) in parse()
757 allow_const: bool, in parse_single()
789 if let Some(mut bound) = TraitBound::do_parse(content, allow_const)? { in parse_single()
801 allow_const: bool, in parse_multiple()
805 let bound = Self::parse_single(input, allow_precise_capture, allow_const)?; in parse_multiple()
816 || (allow_const && (input.peek(token::Bracket) || input.peek(Token![const])))) in parse_multiple()
828 let allow_const = false; in parse() localVariable
829 Self::do_parse(input, allow_const).map(Option::unwrap) in parse()
834 fn do_parse(input: ParseStream, allow_const: bool) -> Result<Option<Self>> { in do_parse()
843 if !allow_const { in do_parse()
849 if !allow_const { in do_parse()
1026 let allow_const = true; in parse() localVariable
1030 allow_const, in parse()