mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
parent
cbb42c10d6
commit
0c3b38695a
4 changed files with 23 additions and 22 deletions
|
@ -193,8 +193,9 @@ impl chalk_ir::interner::Interner for Interner {
|
|||
tls::with_current_program(|prog| Some(prog?.debug_quantified_where_clauses(clauses, fmt)))
|
||||
}
|
||||
|
||||
fn intern_ty(&self, ty: chalk_ir::TyData<Self>) -> Arc<chalk_ir::TyData<Self>> {
|
||||
Arc::new(ty)
|
||||
fn intern_ty(&self, kind: chalk_ir::TyKind<Self>) -> Arc<chalk_ir::TyData<Self>> {
|
||||
let flags = kind.compute_flags(self);
|
||||
Arc::new(chalk_ir::TyData { kind, flags })
|
||||
}
|
||||
|
||||
fn ty_data<'a>(&self, ty: &'a Arc<chalk_ir::TyData<Self>>) -> &'a chalk_ir::TyData<Self> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue