mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Slim down GenericArgs by one usize
This commit is contained in:
parent
4c2aef650a
commit
853ae1927d
7 changed files with 22 additions and 17 deletions
|
@ -57,7 +57,7 @@ pub struct GenericArgs {
|
|||
/// is left out.
|
||||
pub has_self_type: bool,
|
||||
/// Associated type bindings like in `Iterator<Item = T>`.
|
||||
pub bindings: Vec<AssociatedTypeBinding>,
|
||||
pub bindings: Box<[AssociatedTypeBinding]>,
|
||||
/// Whether these generic args were desugared from `Trait(Arg) -> Output`
|
||||
/// parenthesis notation typically used for the `Fn` traits.
|
||||
pub desugared_from_fn: bool,
|
||||
|
@ -214,7 +214,7 @@ impl GenericArgs {
|
|||
GenericArgs {
|
||||
args: Vec::new(),
|
||||
has_self_type: false,
|
||||
bindings: Vec::new(),
|
||||
bindings: Box::default(),
|
||||
desugared_from_fn: false,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue