File tree Expand file tree Collapse file tree 2 files changed +0
-13
lines changed Expand file tree Collapse file tree 2 files changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -189,12 +189,6 @@ extend Parser {
189
189
}
190
190
}
191
191
self.expect(.Rbrace);
192
- } else if self.accept(.KwFunc) {
193
- decls.push(self.parse_func_decl(
194
- doc_comment, annotations, is_public,
195
- annotations.has("unsafe") or abi != .Rivet,
196
- abi
197
- ));
198
192
} else {
199
193
report.error("invalid external declaration", pos);
200
194
}
Original file line number Diff line number Diff line change @@ -220,13 +220,6 @@ def parse_decl(self):
220
220
if self .tok .kind == Kind .Rbrace :
221
221
break
222
222
self .expect (Kind .Rbrace )
223
- elif self .accept (Kind .KwFunc ):
224
- protos .append (
225
- self .parse_func_decl (
226
- doc_comment , annotations , is_public ,
227
- annotations .has ("unsafe" ) or abi != sym .ABI .Rivet , abi
228
- )
229
- )
230
223
else :
231
224
report .error ("invalid external declaration" , pos )
232
225
self .inside_extern = False
You can’t perform that action at this time.
0 commit comments