File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
cedar-policy-validator/src Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -482,14 +482,18 @@ impl Type {
482
482
}
483
483
484
484
/// Return true if we know that any value in this type must be a specified
485
- /// entity. An unspecified entity has type `AnyEntity`, so `AnyEntity` might
486
- /// not be specified. Other entity types must be specified.
485
+ /// entity.
487
486
pub ( crate ) fn must_be_specified_entity ( ty : & Type ) -> bool {
488
487
matches ! (
489
488
ty,
489
+ // An unspecified entity has type `AnyEntity`, so `AnyEntity` might
490
+ // not be specified. Other entity types must be specified.
490
491
Type :: EntityOrRecord (
491
492
EntityRecordKind :: Entity ( _) | EntityRecordKind :: ActionEntity { .. }
492
493
)
494
+ // It is vacuously true that any value in the type `Never` is a
495
+ // specified entity.
496
+ | Type :: Never
493
497
)
494
498
}
495
499
You can’t perform that action at this time.
0 commit comments