mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
Don't need an arena for types anymore
This commit is contained in:
parent
ba7b12e062
commit
d2d4119d24
2 changed files with 15 additions and 36 deletions
|
@ -153,14 +153,7 @@ impl ExprValidator {
|
|||
}
|
||||
|
||||
let pattern_arena = Arena::new();
|
||||
let ty_arena = Arena::new();
|
||||
let cx = MatchCheckCtx::new(
|
||||
self.owner.module(db.upcast()),
|
||||
self.owner,
|
||||
db,
|
||||
&pattern_arena,
|
||||
&ty_arena,
|
||||
);
|
||||
let cx = MatchCheckCtx::new(self.owner.module(db.upcast()), self.owner, db, &pattern_arena);
|
||||
|
||||
let mut m_arms = Vec::with_capacity(arms.len());
|
||||
let mut has_lowering_errors = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue