mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
Some more TyBuilder use
This commit is contained in:
parent
5d2b488aeb
commit
eaa03ef446
2 changed files with 25 additions and 33 deletions
|
@ -493,10 +493,6 @@ impl Substitution {
|
|||
)
|
||||
}
|
||||
|
||||
pub(crate) fn build_for_generics(generic_params: &Generics) -> SubstsBuilder {
|
||||
Substitution::builder(generic_params.len())
|
||||
}
|
||||
|
||||
fn builder(param_count: usize) -> SubstsBuilder {
|
||||
SubstsBuilder { vec: Vec::with_capacity(param_count), param_count }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue