mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Slim down GenericArgs by one usize once more
This commit is contained in:
parent
853ae1927d
commit
4aee911ce4
4 changed files with 26 additions and 15 deletions
|
@ -49,7 +49,7 @@ pub struct Path {
|
|||
/// also includes bindings of associated types, like in `Iterator<Item = Foo>`.
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
|
||||
pub struct GenericArgs {
|
||||
pub args: Vec<GenericArg>,
|
||||
pub args: Box<[GenericArg]>,
|
||||
/// This specifies whether the args contain a Self type as the first
|
||||
/// element. This is the case for path segments like `<T as Trait>`, where
|
||||
/// `T` is actually a type parameter for the path `Trait` specifying the
|
||||
|
@ -212,7 +212,7 @@ impl GenericArgs {
|
|||
|
||||
pub(crate) fn empty() -> GenericArgs {
|
||||
GenericArgs {
|
||||
args: Vec::new(),
|
||||
args: Box::default(),
|
||||
has_self_type: false,
|
||||
bindings: Box::default(),
|
||||
desugared_from_fn: false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue