Skip to content

Commit e5ca1eb

Browse files
aibaarsredsun82
andauthored
Apply suggestions from code review
Co-authored-by: Paolo Tranquilli <[email protected]>
1 parent e69d76c commit e5ca1eb

File tree

1 file changed

+2
-2
lines changed
  • rust/extractor/src/translate

1 file changed

+2
-2
lines changed

rust/extractor/src/translate/base.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ macro_rules! pre_emit {
4343
}
4444
impl From<crate::trap::Label<generated::AssocItem>> for crate::trap::Label<generated::Item> {
4545
fn from(value: crate::trap::Label<generated::AssocItem>) -> Self {
46-
// SAFETY: this is safe because in the dbscheme Item is a subclass of Stmt
46+
// SAFETY: this is safe because every concrete instance of `@assoc_item` is also an instance of `@item`
4747
unsafe { Self::from_untyped(value.as_untyped()) }
4848
}
4949
}
5050
impl From<crate::trap::Label<generated::ExternItem>> for crate::trap::Label<generated::Item> {
5151
fn from(value: crate::trap::Label<generated::ExternItem>) -> Self {
52-
// SAFETY: this is safe because in the dbscheme Item is a subclass of Stmt
52+
// SAFETY: this is safe because every concrete instance of `@extern_item` is also an instance of `@item`
5353
unsafe { Self::from_untyped(value.as_untyped()) }
5454
}
5555
}

0 commit comments

Comments
 (0)