@@ -70,7 +70,7 @@ impl Storages {
70
70
let table = & self . tables [ archetype. table_id ( ) ] ;
71
71
let components = table. get_column ( component_id) ?;
72
72
let table_row = archetype. entity_table_row ( location. index ) ;
73
- // SAFETY: archetypes only store valid table_rows and the stored component type is T
73
+ // SAFETY: archetypes only store valid table_rows and caller ensure aliasing rules
74
74
Some ( unsafe {
75
75
(
76
76
components. get_data_unchecked ( table_row) ,
@@ -131,7 +131,7 @@ impl Storages {
131
131
let table = & self . tables [ archetype. table_id ( ) ] ;
132
132
let components = table. get_column ( component_id) ?;
133
133
let table_row = archetype. entity_table_row ( location. index ) ;
134
- // SAFETY: archetypes only store valid table_rows and the stored component type is T
134
+ // SAFETY: archetypes only store valid table_rows and caller ensure aliasing rules
135
135
Some ( unsafe { components. get_data_unchecked ( table_row) } )
136
136
}
137
137
StorageType :: SparseSet => self
@@ -187,7 +187,7 @@ impl Storages {
187
187
let table = & self . tables [ archetype. table_id ( ) ] ;
188
188
let components = table. get_column ( component_id) ?;
189
189
let table_row = archetype. entity_table_row ( location. index ) ;
190
- // SAFETY: archetypes only store valid table_rows and the stored component type is T
190
+ // SAFETY: archetypes only store valid table_rows and caller ensure aliasing rules
191
191
Some ( unsafe { components. get_ticks_unchecked ( table_row) } )
192
192
}
193
193
StorageType :: SparseSet => self
@@ -230,7 +230,7 @@ impl Storages {
230
230
// SAFETY: archetypes will always point to valid columns
231
231
let components = table. get_column_mut ( component_id) . unwrap ( ) ;
232
232
let table_row = archetype. entity_table_row ( location. index ) ;
233
- // SAFETY: archetypes only store valid table_rows and the stored component type is T
233
+ // SAFETY: archetypes only store valid table_rows
234
234
// SAFETY: promote is safe because the caller promises to remove the table row without dropping it immediately afterwards
235
235
components. get_data_unchecked_mut ( table_row) . promote ( )
236
236
}
0 commit comments