mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 15:15:24 +00:00
Support overloaded deref MIR lowering
This commit is contained in:
parent
9564773d5e
commit
eb4939e217
18 changed files with 398 additions and 86 deletions
|
@ -57,6 +57,7 @@ mod expr;
|
|||
mod pat;
|
||||
mod coerce;
|
||||
mod closure;
|
||||
mod mutability;
|
||||
|
||||
/// The entry point of type inference.
|
||||
pub(crate) fn infer_query(db: &dyn HirDatabase, def: DefWithBodyId) -> Arc<InferenceResult> {
|
||||
|
@ -99,6 +100,8 @@ pub(crate) fn infer_query(db: &dyn HirDatabase, def: DefWithBodyId) -> Arc<Infer
|
|||
|
||||
ctx.infer_body();
|
||||
|
||||
ctx.infer_mut_body();
|
||||
|
||||
Arc::new(ctx.resolve_all())
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue