Skip to content

Commit 6028dd7

Browse files
committed
rename linter
1 parent 6a75ad1 commit 6028dd7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Lean/Linter/Coe.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def coercionsBannedInCore : List Name := [``optionCoe, ``instCoeSubarrayArray]
3939
def coeLinter : Linter where
4040
run := fun _ => do
4141
let mainModule ← getMainModule
42-
let isCoreModule := mainModule = `lean.run.coeLinter ∨ (mainModule.getRoot ∈ [`Init, `Std])
42+
let isCoreModule := mainModule = `lean.run.linterCoe ∨ (mainModule.getRoot ∈ [`Init, `Std])
4343
let shouldWarnOnDeprecated := getLinterValue linter.deprecatedCoercions (← getLinterOptions)
4444
let trees ← Elab.getInfoTrees
4545
for tree in trees do
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module
22

33
-- by default, linters are disabled when running tests
4-
set_option linter.deprecatedCoercions true
4+
set_option linter.all true
55

66
structure X
77
structure Y
@@ -27,6 +27,7 @@ Note: This linter can be disabled with `set_option linter.deprecatedCoercions fa
2727
#guard_msgs in
2828
def h (foo : X) : Y := foo
2929

30+
/-- -/
3031
notation a " +' " b => a + b
3132

3233
@[deprecated "" (since := "")]

0 commit comments

Comments
 (0)