From ea15203ff9fb893693e3b1de2e83b5842e0e68fc Mon Sep 17 00:00:00 2001 From: Folkert Date: Sat, 23 Apr 2022 21:20:49 +0200 Subject: [PATCH] clarify --- compiler/can/src/def.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/compiler/can/src/def.rs b/compiler/can/src/def.rs index bd9ec6cf43..812d342fdb 100644 --- a/compiler/can/src/def.rs +++ b/compiler/can/src/def.rs @@ -761,8 +761,8 @@ impl DefOrdering { } } } - DefReferences::Empty => { - // produced by annotations without bodies + DefReferences::AnnotationWithoutBody => { + // annotatations without bodies don't reference any other definitions } } } @@ -1178,7 +1178,7 @@ fn add_annotation_aliases( enum DefReferences { Value(References), Function(References), - Empty, + AnnotationWithoutBody, } struct TempOutput { @@ -1301,7 +1301,7 @@ fn canonicalize_pending_value_def_new<'a>( TempOutput { output, - references: DefReferences::Empty, + references: DefReferences::AnnotationWithoutBody, def, } }