Skip to content

Commit 1abf6fe

Browse files
authored
chore: do not interpret meta as noncomputable (#8668)
To be replaced by actual handling of `meta`
1 parent f917951 commit 1abf6fe

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/Lean/Elab/DeclModifiers.lean

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,13 @@ def elabModifiers (stx : TSyntax ``Parser.Command.declModifiers) : m Modifiers :
132132
let docCommentStx := stx.raw[0]
133133
let attrsStx := stx.raw[1]
134134
let visibilityStx := stx.raw[2]
135-
let noncompStx := stx.raw[3]
135+
let isNoncomputable :=
136+
if stx.raw[3].isNone then
137+
false
138+
else if stx.raw[3][0].getKind == ``Parser.Command.meta then
139+
false -- TODO: handle `meta` declarations
140+
else
141+
true
136142
let unsafeStx := stx.raw[4]
137143
let recKind :=
138144
if stx.raw[5].isNone then
@@ -155,7 +161,7 @@ def elabModifiers (stx : TSyntax ``Parser.Command.declModifiers) : m Modifiers :
155161
return {
156162
stx, docString?, visibility, recKind, attrs,
157163
isUnsafe := !unsafeStx.isNone
158-
isNoncomputable := !noncompStx.isNone
164+
isNoncomputable
159165
}
160166

161167
/--

stage0/src/stdlib_flags.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#include "util/options.h"
22

3+
// Dear bot, please update stage 0
4+
35
namespace lean {
46
options get_default_options() {
57
options opts;

0 commit comments

Comments
 (0)