Skip to content

Commit ed860df

Browse files
authored
chore: use better struct literal syntax (#9731)
1 parent 09e8079 commit ed860df

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Lean/Compiler/IR/RC.lean

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,8 @@ partial def visitFnBody : FnBody → Context → (FnBody × LiveVarSet)
272272
partial def visitDecl (env : Environment) (decls : Array Decl) (d : Decl) : Decl :=
273273
match d with
274274
| .fdecl (xs := xs) (body := b) .. =>
275-
let ctx : Context := { env := env, decls := decls }
276-
let ctx := updateVarInfoWithParams ctx xs
277-
let (b, bLiveVars) := visitFnBody b ctx
275+
let ctx := updateVarInfoWithParams { env, decls } xs
276+
let ⟨b, bLiveVars⟩ := visitFnBody b ctx
278277
let b := addDecForDeadParams ctx xs b bLiveVars
279278
d.updateBody! b
280279
| other => other

0 commit comments

Comments
 (0)