chore: remove two workarounds
They are not needed anymore after 83775b08cb
This commit is contained in:
parent
b6d7d9569e
commit
eb510c16c3
1 changed files with 2 additions and 4 deletions
|
|
@ -60,13 +60,11 @@ def addPreDefinitions (preDefs : Array PreDefinition) : TermElabM Unit := do
|
|||
trace[Elab.definition.scc]! "{preDefs.map (·.declName)}"
|
||||
if preDefs.size == 1 && isNonRecursive preDefs[0] then
|
||||
let preDef := preDefs[0]
|
||||
-- TODO: check why we need `true ==`
|
||||
if true == preDef.modifiers.isNoncomputable then
|
||||
if preDef.modifiers.isNoncomputable then
|
||||
addNonRec preDef
|
||||
else
|
||||
addAndCompileNonRec preDef
|
||||
-- TODO: check why we need `true ==`
|
||||
else if true == preDefs.any (·.modifiers.isUnsafe) then
|
||||
else if preDefs.any (·.modifiers.isUnsafe) then
|
||||
addAndCompileUnsafe preDefs
|
||||
else if preDefs.any (·.modifiers.isPartial) then
|
||||
addAndCompilePartial preDefs
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue