File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -43,13 +43,13 @@ macro_rules! pre_emit {
43
43
}
44
44
impl From < crate :: trap:: Label < generated:: AssocItem > > for crate :: trap:: Label < generated:: Item > {
45
45
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`
47
47
unsafe { Self :: from_untyped ( value. as_untyped ( ) ) }
48
48
}
49
49
}
50
50
impl From < crate :: trap:: Label < generated:: ExternItem > > for crate :: trap:: Label < generated:: Item > {
51
51
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`
53
53
unsafe { Self :: from_untyped ( value. as_untyped ( ) ) }
54
54
}
55
55
}
You can’t perform that action at this time.
0 commit comments