Skip to content

Commit 4288aa7

Browse files
authored
chore: do not set unused Option.Decl.group (#11307)
This PR removes all code that sets the `Option.Decl.group` field, which is unused and has no clearly documented meaning. The actual removal of the field would be #11305.
1 parent 0471319 commit 4288aa7

34 files changed

+1
-124
lines changed

src/Lean/Compiler/LCNF/ConfigOptions.lean

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,31 +43,26 @@ structure ConfigOptions where
4343

4444
register_builtin_option compiler.small : Nat := {
4545
defValue := 1
46-
group := "compiler"
4746
descr := "(compiler) function declarations with size `≤ small` is inlined even if there are multiple occurrences."
4847
}
4948

5049
register_builtin_option compiler.maxRecInline : Nat := {
5150
defValue := 1
52-
group := "compiler"
5351
descr := "(compiler) maximum number of times a recursive definition tagged with `[inline]` can be recursively inlined before generating an error during compilation."
5452
}
5553

5654
register_builtin_option compiler.maxRecInlineIfReduce : Nat := {
5755
defValue := 16
58-
group := "compiler"
5956
descr := "(compiler) maximum number of times a recursive definition tagged with `[inline_if_reduce]` can be recursively inlined before generating an error during compilation."
6057
}
6158

6259
register_builtin_option compiler.checkTypes : Bool := {
6360
defValue := false
64-
group := "compiler"
6561
descr := "(compiler) perform type compatibility checking after each compiler pass. Note this is not a complete check, and it is used only for debugging purposes. It fails in code that makes heavy use of dependent types."
6662
}
6763

6864
register_builtin_option compiler.extract_closed : Bool := {
6965
defValue := true
70-
group := "compiler"
7166
descr := "(compiler) enable/disable closed term caching"
7267
}
7368

src/Lean/Compiler/Options.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ namespace Lean.Compiler
1414

1515
register_builtin_option compiler.check : Bool := {
1616
defValue := false
17-
group := "compiler"
1817
descr := "type check code after each compiler step (this is useful for debugging purses)"
1918
}
2019

src/Lean/CoreM.lean

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@ public section
1515
namespace Lean
1616
register_builtin_option diagnostics : Bool := {
1717
defValue := false
18-
group := "diagnostics"
1918
descr := "collect diagnostic information"
2019
}
2120

2221
register_builtin_option diagnostics.threshold : Nat := {
2322
defValue := 20
24-
group := "diagnostics"
2523
descr := "only diagnostic counters above this threshold are reported by the definitional equality"
2624
}
2725

@@ -454,7 +452,6 @@ the exception has been thrown.
454452

455453
register_builtin_option debug.moduleNameAtTimeout : Bool := {
456454
defValue := true
457-
group := "debug"
458455
descr := "include module name in deterministic timeout error messages.\nRemark: we set this option to false to increase the stability of our test suite"
459456
}
460457

@@ -560,7 +557,6 @@ def wrapAsync {α : Type} (act : α → CoreM β) (cancelTk? : Option IO.CancelT
560557
/-- Option for capturing output to stderr during elaboration. -/
561558
register_builtin_option stderrAsMessages : Bool := {
562559
defValue := true
563-
group := "server"
564560
descr := "(server) capture output to the Lean stderr channel (such as from `dbg_trace`) during elaboration of a command as a diagnostic message"
565561
}
566562

src/Lean/DocString/Extension.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ deriving Inhabited
6666
register_builtin_option doc.verso : Bool := {
6767
defValue := false,
6868
descr := "whether to use Verso syntax in docstrings"
69-
group := "doc"
7069
}
7170

7271
private builtin_initialize builtinDocStrings : IO.Ref (NameMap String) ← IO.mkRef {}

src/Lean/Elab/DocString.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1161,7 +1161,6 @@ If `true`, suggestions are provided for code elements.
11611161
register_builtin_option doc.verso.suggestions : Bool := {
11621162
defValue := true
11631163
descr := "whether to provide suggestions for code elements"
1164-
group := "doc"
11651164
}
11661165

11671166
-- Normally, name suggestions should be provided relative to the current scope. But

src/Lean/Elab/MutualDef.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,6 @@ register_builtin_option linter.unusedSectionVars : Bool := {
482482

483483
register_builtin_option debug.proofAsSorry : Bool := {
484484
defValue := false
485-
group := "debug"
486485
descr := "replace the bodies (proofs) of theorems with `sorry`"
487486
}
488487

src/Lean/Elab/MutualInductive.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ register_builtin_option inductive.autoPromoteIndices : Bool := {
5454

5555
register_builtin_option bootstrap.inductiveCheckResultingUniverse : Bool := {
5656
defValue := true,
57-
group := "bootstrap",
5857
descr := "by default the `inductive`/`structure` commands report an error if the resulting universe is not zero, \
5958
but may be zero for some universe parameters. Reason: unless this type is a subsingleton, \
6059
it is hardly what the user wants since it can only eliminate into `Prop`. \

src/Lean/Elab/PreDefinition/Basic.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ private def compileDecl (decl : Declaration) : TermElabM Unit := do
142142

143143
register_builtin_option diagnostics.threshold.proofSize : Nat := {
144144
defValue := 16384
145-
group := "diagnostics"
146145
descr := "only display proof statistics when proof has at least this number of terms"
147146
}
148147

src/Lean/Elab/Tactic/Do/VCGen/Basic.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ builtin_initialize registerTraceClass `Elab.Tactic.Do.vcgen
1919

2020
register_builtin_option mvcgen.warning : Bool := {
2121
defValue := true
22-
group := "debug"
2322
descr := "disable `mvcgen` usage warning"
2423
}
2524

src/Lean/Elab/Tactic/Induction.lean

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ public section
1616

1717
register_builtin_option tactic.customEliminators : Bool := {
1818
defValue := true
19-
group := "tactic"
2019
descr := "enable using custom eliminators in the 'induction' and 'cases' tactics \
2120
defined using the '@[induction_eliminator]' and '@[cases_eliminator]' attributes"
2221
}
@@ -977,7 +976,6 @@ def evalInduction : Tactic := fun stx =>
977976

978977
register_builtin_option tactic.fun_induction.unfolding : Bool := {
979978
defValue := true
980-
group := "tactic"
981979
descr := "if set to 'true', then 'fun_induction' and 'fun_cases' will use the “unfolding \
982980
functional induction (resp. cases) principle” ('….induct_unfolding'/'….fun_cases_unfolding'), \
983981
which will attempt to replace the function goal of interest in the goal with the appropriate \

0 commit comments

Comments
 (0)