-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set panic as default fallible system param behavior #16638
base: main
Are you sure you want to change the base?
Changes from all commits
6a09fca
c5d7248
555d12b
405c850
82d3611
1330797
f2cbfe8
0f44ba8
ce753d1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -214,7 +214,7 @@ where | |
#[inline] | ||
unsafe fn validate_param_unsafe(&mut self, world: UnsafeWorldCell) -> bool { | ||
// SAFETY: Delegate to other `System` implementations. | ||
unsafe { self.a.validate_param_unsafe(world) && self.b.validate_param_unsafe(world) } | ||
unsafe { self.a.validate_param_unsafe(world) } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this ok? Surely we should check that both params are valid? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah I should have read above in the PR discussion, can you just add a to-do or at least a comment explanation why we've decided to do this? |
||
} | ||
|
||
fn initialize(&mut self, world: &mut World) { | ||
|
@@ -433,7 +433,7 @@ where | |
|
||
unsafe fn validate_param_unsafe(&mut self, world: UnsafeWorldCell) -> bool { | ||
// SAFETY: Delegate to other `System` implementations. | ||
unsafe { self.a.validate_param_unsafe(world) && self.b.validate_param_unsafe(world) } | ||
unsafe { self.a.validate_param_unsafe(world) } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here |
||
} | ||
|
||
fn validate_param(&mut self, world: &World) -> bool { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As agreed, this is no longer supported in this scope