Skip to content

Commit aed8dfe

Browse files
committed
Fix style check for stable Rust
1 parent d4ec540 commit aed8dfe

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/plan/global.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ impl<VM: VMBinding> CreateSpecificPlanArgs<'_, VM> {
442442
zeroed: bool,
443443
permission_exec: bool,
444444
vmrequest: VMRequest,
445-
) -> PlanCreateSpaceArgs<VM> {
445+
) -> PlanCreateSpaceArgs<&'_, VM> {
446446
// Objects are allocatd as young, and when traced, they stay young. If they are copied out of the nursery space, they will be moved to a mature space,
447447
// and log bits will be set in that case by the mature space.
448448
self._get_space_args(name, zeroed, permission_exec, false, false, vmrequest)
@@ -455,7 +455,7 @@ impl<VM: VMBinding> CreateSpecificPlanArgs<'_, VM> {
455455
zeroed: bool,
456456
permission_exec: bool,
457457
vmrequest: VMRequest,
458-
) -> PlanCreateSpaceArgs<VM> {
458+
) -> PlanCreateSpaceArgs<&'_, VM> {
459459
// Objects are allocated as mature (pre-tenured), and when traced, they stay mature.
460460
// If an object gets copied into a mature space, the object is also mature,
461461
self._get_space_args(name, zeroed, permission_exec, true, true, vmrequest)
@@ -468,7 +468,7 @@ impl<VM: VMBinding> CreateSpecificPlanArgs<'_, VM> {
468468
zeroed: bool,
469469
permission_exec: bool,
470470
vmrequest: VMRequest,
471-
) -> PlanCreateSpaceArgs<VM> {
471+
) -> PlanCreateSpaceArgs<&'_, VM> {
472472
// Objects are allocated as young, and when traced, they become mature objects.
473473
self._get_space_args(name, zeroed, permission_exec, false, true, vmrequest)
474474
}
@@ -480,7 +480,7 @@ impl<VM: VMBinding> CreateSpecificPlanArgs<'_, VM> {
480480
zeroed: bool,
481481
permission_exec: bool,
482482
vmrequest: VMRequest,
483-
) -> PlanCreateSpaceArgs<VM> {
483+
) -> PlanCreateSpaceArgs<&'_, VM> {
484484
// Non generational plan: we do not use any of the flags about log bits.
485485
self._get_space_args(name, zeroed, permission_exec, false, false, vmrequest)
486486
}
@@ -491,7 +491,7 @@ impl<VM: VMBinding> CreateSpecificPlanArgs<'_, VM> {
491491
&mut self,
492492
generational: bool,
493493
name: &'static str,
494-
) -> PlanCreateSpaceArgs<VM> {
494+
) -> PlanCreateSpaceArgs<&'_, VM> {
495495
self.get_base_space_args(
496496
generational,
497497
name,
@@ -505,7 +505,7 @@ impl<VM: VMBinding> CreateSpecificPlanArgs<'_, VM> {
505505
generational: bool,
506506
name: &'static str,
507507
permission_exec: bool,
508-
) -> PlanCreateSpaceArgs<VM> {
508+
) -> PlanCreateSpaceArgs<&'_, VM> {
509509
if generational {
510510
// In generational plans, common/base spaces behave like a mature space:
511511
// * the objects in these spaces are not traced in a nursery GC

0 commit comments

Comments
 (0)