mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 12:36:35 +03:00
Don't intern ProgramClause at all
This seems to work best performance/memory-wise.
This commit is contained in:
@@ -70,7 +70,7 @@ impl chalk_ir::interner::Interner for Interner {
|
||||
type InternedGoal = Arc<GoalData<Self>>;
|
||||
type InternedGoals = Vec<Goal<Self>>;
|
||||
type InternedSubstitution = Interned<InternedSubstitutionInner>;
|
||||
type InternedProgramClause = Arc<chalk_ir::ProgramClauseData<Self>>;
|
||||
type InternedProgramClause = chalk_ir::ProgramClauseData<Self>;
|
||||
type InternedProgramClauses = Interned<InternedWrapper<Vec<chalk_ir::ProgramClause<Self>>>>;
|
||||
type InternedQuantifiedWhereClauses = Interned<InternedWrapper<Vec<chalk_ir::QuantifiedWhereClause<Self>>>>;
|
||||
type InternedVariableKinds = Interned<InternedVariableKindsInner>;
|
||||
@@ -315,7 +315,7 @@ fn intern_program_clause(
|
||||
&self,
|
||||
data: chalk_ir::ProgramClauseData<Self>,
|
||||
) -> Self::InternedProgramClause {
|
||||
Arc::new(data)
|
||||
data
|
||||
}
|
||||
|
||||
fn program_clause_data<'a>(
|
||||
|
||||
Reference in New Issue
Block a user