mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
implement basic inferring of lifetimes
This commit is contained in:
parent
4cd8dcf287
commit
8a4261aca8
14 changed files with 109 additions and 85 deletions
|
@ -1179,7 +1179,8 @@ impl<'db> SemanticsImpl<'db> {
|
|||
hir_ty::Adjust::Borrow(hir_ty::AutoBorrow::RawPtr(m)) => {
|
||||
Adjust::Borrow(AutoBorrow::RawPtr(mutability(m)))
|
||||
}
|
||||
hir_ty::Adjust::Borrow(hir_ty::AutoBorrow::Ref(m)) => {
|
||||
hir_ty::Adjust::Borrow(hir_ty::AutoBorrow::Ref(_, m)) => {
|
||||
// FIXME: Handle lifetimes here
|
||||
Adjust::Borrow(AutoBorrow::Ref(mutability(m)))
|
||||
}
|
||||
hir_ty::Adjust::Pointer(pc) => Adjust::Pointer(pc),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue