chore: use better struct literal syntax (#9731)

This commit is contained in:
Cameron Zwarich 2025-08-05 07:07:39 -07:00 committed by GitHub
parent 09e8079ea3
commit ed860dfa23
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -272,9 +272,8 @@ partial def visitFnBody : FnBody → Context → (FnBody × LiveVarSet)
partial def visitDecl (env : Environment) (decls : Array Decl) (d : Decl) : Decl :=
match d with
| .fdecl (xs := xs) (body := b) .. =>
let ctx : Context := { env := env, decls := decls }
let ctx := updateVarInfoWithParams ctx xs
let (b, bLiveVars) := visitFnBody b ctx
let ctx := updateVarInfoWithParams { env, decls } xs
let ⟨b, bLiveVars⟩ := visitFnBody b ctx
let b := addDecForDeadParams ctx xs b bLiveVars
d.updateBody! b
| other => other