set_option linter.deprecatedCoercions true enables a linter emitting warnings on deprecated
coercions.
def Lean.Linter.Coe.shouldWarnOnDeprecatedCoercions {m : Type → Type} [Monad m] [MonadOptions m] :
m Bool
Checks whether the "deprecated coercions" linter is enabled.
Equations
- Lean.Linter.Coe.shouldWarnOnDeprecatedCoercions = do let __do_lift ← Lean.getOptions pure (__do_lift.get Lean.Linter.Coe.linter.deprecatedCoercions.name true)
Instances For
A list of coercion names that must not be used in core.
Equations
- Lean.Linter.Coe.coercionsBannedInCore = #[`optionCoe, `instCoeSubarrayArray]
Instances For
Validates that no coercions are used that are either deprecated or are banned in core.
Equations
- One or more equations did not get rendered due to their size.