Skip to content

Commit 4e573f2

Browse files
committed
refactor: rename empty_type to never_type
1 parent e692f1e commit 4e573f2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

grammar.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ module.exports = grammar({
708708
$.function_type,
709709
$._type_identifier,
710710
$.macro_invocation,
711-
$.empty_type,
711+
$.never_type,
712712
$.dynamic_type,
713713
$.bounded_type,
714714
alias(choice(...primitiveTypes), $.primitive_type),
@@ -843,7 +843,7 @@ module.exports = grammar({
843843
field('type', $._type),
844844
),
845845

846-
empty_type: _ => '!',
846+
never_type: _ => '!',
847847

848848
abstract_type: $ => seq(
849849
'impl',

test/corpus/declarations.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ fn aborts() -> ! {
278278
(function_item
279279
(identifier)
280280
(parameters)
281-
(empty_type)
281+
(never_type)
282282
(block)))
283283

284284
================================================================================

0 commit comments

Comments
 (0)