Skip to content

Commit

Permalink
Remove lifetime bounds in higher-ranked lifetimes
Browse files Browse the repository at this point in the history
Those bounds are ignored by the compiler, and will soon trigger an error.
According to crater, this is the only crate using these bounds.
  • Loading branch information
RalfJung committed Mar 9, 2018
1 parent 271b996 commit 2727673
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rhusics-ecs/src/collide/systems/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ where
Y: Default + Send + Sync + 'static,
B: Bound<Point = P::Point> + Send + Sync + 'static + Union<B, Output = B> + Clone,
D: HasBound<Bound = B> + From<(Entity, B)> + GetId<Entity>,
for<'b: 'a> &'b T::Storage: Join<Type = &'b T>,
for<'b> &'b T::Storage: Join<Type = &'b T>,
{
type SystemData = (
Entities<'a>,
Expand Down
4 changes: 2 additions & 2 deletions rhusics-ecs/src/collide/systems/spatial_collision.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ where
P::Point: Debug + Send + Sync + 'static,
T: Component + Clone + Debug + Transform<P::Point> + Send + Sync + 'static,
Y: Default + Send + Sync + 'static,
for<'b: 'a> &'b T::Storage: Join<Type = &'b T>,
for<'b> &'b T::Storage: Join<Type = &'b T>,
D: Send + Sync + 'static + TreeValue<Bound = B> + HasBound<Bound = B> + GetId<Entity>,
{
type SystemData = (
Expand Down Expand Up @@ -160,7 +160,7 @@ where
T: Component + Transform<P::Point> + Send + Sync + Clone + 'static,
Y: Default + Send + Sync + 'static,
B: Bound<Point = P::Point> + Send + Sync + 'static + Union<B, Output = B> + Clone,
for<'b: 'a> &'b T::Storage: Join<Type = &'b T>,
for<'b> &'b T::Storage: Join<Type = &'b T>,
{
fn get_broad_data(&self) -> Vec<D> {
Vec::default()
Expand Down
2 changes: 1 addition & 1 deletion rhusics-ecs/src/collide/systems/spatial_sort.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ where
<P::Point as EuclideanSpace>::Diff: Debug + Send + Sync,
T: Component + Clone + Debug + Transform<P::Point> + Send + Sync,
Y: Default + Send + Sync + 'static,
for<'b: 'a> &'b T::Storage: Join<Type = &'b T>,
for<'b> &'b T::Storage: Join<Type = &'b T>,
D: Send + Sync + 'static + TreeValue<Bound = B> + From<(Entity, B)>,
{
type SystemData = (
Expand Down

0 comments on commit 2727673

Please sign in to comment.