mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Add impl trait lowering mode
This commit is contained in:
parent
22a65b11b3
commit
7ea4bce1b2
6 changed files with 141 additions and 40 deletions
|
@ -179,8 +179,7 @@ impl SourceAnalyzer {
|
|||
}
|
||||
|
||||
fn trait_env(&self, db: &impl HirDatabase) -> Arc<TraitEnvironment> {
|
||||
let ctx = hir_ty::TyLoweringContext { db, resolver: &self.resolver };
|
||||
TraitEnvironment::lower(&ctx)
|
||||
TraitEnvironment::lower(db, &self.resolver)
|
||||
}
|
||||
|
||||
pub fn type_of(&self, db: &impl HirDatabase, expr: &ast::Expr) -> Option<Type> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue