Use ThinVec
in ast::AngleBracketedArgs
.
This commit is contained in:
parent
b14b7ba5dd
commit
1807027248
6 changed files with 9 additions and 8 deletions
|
@ -2199,7 +2199,7 @@ impl<'a> Parser<'a> {
|
|||
/// like the user has forgotten them.
|
||||
pub fn handle_ambiguous_unbraced_const_arg(
|
||||
&mut self,
|
||||
args: &mut Vec<AngleBracketedArg>,
|
||||
args: &mut ThinVec<AngleBracketedArg>,
|
||||
) -> PResult<'a, bool> {
|
||||
// If we haven't encountered a closing `>`, then the argument is malformed.
|
||||
// It's likely that the user has written a const expression without enclosing it
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue