Skip to content

Commit

Permalink
track caller for debug_checked_unreachable
Browse files Browse the repository at this point in the history
  • Loading branch information
joseph-gio committed Nov 2, 2022
1 parent 334e098 commit b32f09d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/bevy_ecs/src/query/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ pub use iter::*;
pub use state::*;

#[allow(unreachable_code)]
#[cfg_attr(debug_assertions, track_caller)]
pub(crate) unsafe fn debug_checked_unreachable() -> ! {
#[cfg(debug_assertions)]
unreachable!();
Expand Down

0 comments on commit b32f09d

Please sign in to comment.