1
Fork 0

Use ThinVec in ast::AngleBracketedArgs.

This commit is contained in:
Nicholas Nethercote 2023-01-30 14:37:06 +11:00
parent b14b7ba5dd
commit 1807027248
6 changed files with 9 additions and 8 deletions

View file

@ -27,6 +27,7 @@ use rustc_span::Span;
use rustc_target::spec::abi;
use std::mem;
use std::ops::{Deref, DerefMut};
use thin_vec::thin_vec;
use crate::errors::*;
@ -1615,7 +1616,7 @@ fn deny_equality_constraints(
empty_args => {
*empty_args = AngleBracketedArgs {
span: ident.span,
args: vec![arg],
args: thin_vec![arg],
}
.into();
}