We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 915024b commit c346d28Copy full SHA for c346d28
crates/bevy_ecs/src/core/archetype.rs
@@ -484,7 +484,6 @@ pub struct TypeInfo {
484
id: TypeId,
485
layout: Layout,
486
drop: unsafe fn(*mut u8),
487
- #[cfg(debug_assertions)]
488
type_name: &'static str,
489
}
490
@@ -499,7 +498,6 @@ impl TypeInfo {
499
498
id: TypeId::of::<T>(),
500
layout: Layout::new::<T>(),
501
drop: drop_ptr::<T>,
502
503
type_name: core::any::type_name::<T>(),
504
505
@@ -519,6 +517,12 @@ impl TypeInfo {
519
517
pub(crate) unsafe fn drop(&self, data: *mut u8) {
520
518
(self.drop)(data)
521
+
+ #[allow(missing_docs)]
522
+ #[inline]
523
+ pub fn type_name(&self) -> &'static str {
524
+ self.type_name
525
+ }
526
527
528
impl PartialOrd for TypeInfo {
0 commit comments