mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
replace static_lifetime with new_lifetime_var where necessary
implemented suggested fixes and changes and fix merge conflicts
This commit is contained in:
parent
a555e95c9a
commit
13301e7a1a
5 changed files with 19 additions and 23 deletions
|
@ -1873,8 +1873,9 @@ impl InferenceContext<'_> {
|
|||
GenericParamId::ConstParamId(id) => {
|
||||
substs.push(self.table.new_const_var(self.db.const_param_ty(id)).cast(Interner))
|
||||
}
|
||||
// FIXME: create `new_lifetime_var` in infer
|
||||
GenericParamId::LifetimeParamId(_) => substs.push(static_lifetime().cast(Interner)),
|
||||
GenericParamId::LifetimeParamId(_) => {
|
||||
substs.push(self.table.new_lifetime_var().cast(Interner))
|
||||
}
|
||||
}
|
||||
}
|
||||
assert_eq!(substs.len(), total_len);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue