Skip to content

Commit

Permalink
refactor: rename empty_type to never_type
Browse files Browse the repository at this point in the history
  • Loading branch information
amaanq committed Apr 7, 2024
1 parent e692f1e commit 4e573f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ module.exports = grammar({
$.function_type,
$._type_identifier,
$.macro_invocation,
$.empty_type,
$.never_type,
$.dynamic_type,
$.bounded_type,
alias(choice(...primitiveTypes), $.primitive_type),
Expand Down Expand Up @@ -843,7 +843,7 @@ module.exports = grammar({
field('type', $._type),
),

empty_type: _ => '!',
never_type: _ => '!',

abstract_type: $ => seq(
'impl',
Expand Down
2 changes: 1 addition & 1 deletion test/corpus/declarations.txt
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ fn aborts() -> ! {
(function_item
(identifier)
(parameters)
(empty_type)
(never_type)
(block)))

================================================================================
Expand Down

0 comments on commit 4e573f2

Please sign in to comment.