Skip to content

Commit

Permalink
Make minor modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
sonmarcho committed Aug 27, 2024
1 parent dbfeba1 commit b91ecb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backends/lean/Base/Diverge/Elab.lean
Original file line number Diff line number Diff line change
Expand Up @@ -1441,7 +1441,7 @@ where
withFunLocalDecls headers fun funFVars => do
for view in views, funFVar in funFVars do
addLocalVarInfo view.declId funFVar
-- Modification 1:
-- MODIFICATION 1:
-- Add fake use site to prevent "unused variable" warning (if the
-- function is actually not recursive, Lean would print this warning).
-- Remark: we could detect this case and encode the function without
Expand Down Expand Up @@ -1472,7 +1472,7 @@ where
for preDef in preDefs do
trace[Elab.definition] "after eraseAuxDiscr, {preDef.declName} : {preDef.type} :=\n{preDef.value}"
checkForHiddenUnivLevels allUserLevelNames preDefs
addPreDefinitions preDefs -- Modification 2: we use our custom function here
addPreDefinitions preDefs -- MODIFICATION 2: we use our custom function here
processDeriving headers
for view in views, header in headers do
-- NOTE: this should be the full `ref`, and thus needs to be done after any snapshotting
Expand Down

0 comments on commit b91ecb8

Please sign in to comment.