Skip to content

Commit 5b48f8a

Browse files
authored
Bump Rust version to v1.66.1 (#752)
1 parent 7953aa4 commit 5b48f8a

35 files changed

+46
-42
lines changed

rust-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.59.0
1+
1.66.1

src/plan/generational/copying/global.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ impl<VM: VMBinding> Plan for GenCopy<VM> {
9595
}
9696

9797
fn get_allocator_mapping(&self) -> &'static EnumMap<AllocationSemantics, AllocatorSelector> {
98-
&*ALLOCATOR_MAPPING
98+
&ALLOCATOR_MAPPING
9999
}
100100

101101
fn prepare(&mut self, tls: VMWorkerThread) {

src/plan/generational/copying/mutator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub fn create_gencopy_mutator<VM: VMBinding>(
3434
) -> Mutator<VM> {
3535
let gencopy = mmtk.plan.downcast_ref::<GenCopy<VM>>().unwrap();
3636
let config = MutatorConfig {
37-
allocator_mapping: &*ALLOCATOR_MAPPING,
37+
allocator_mapping: &ALLOCATOR_MAPPING,
3838
space_mapping: Box::new(create_gen_space_mapping(&*mmtk.plan, &gencopy.gen.nursery)),
3939
prepare_func: &gencopy_mutator_prepare,
4040
release_func: &gencopy_mutator_release,

src/plan/generational/immix/global.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ impl<VM: VMBinding> Plan for GenImmix<VM> {
144144
}
145145

146146
fn get_allocator_mapping(&self) -> &'static EnumMap<AllocationSemantics, AllocatorSelector> {
147-
&*super::mutator::ALLOCATOR_MAPPING
147+
&super::mutator::ALLOCATOR_MAPPING
148148
}
149149

150150
fn prepare(&mut self, tls: VMWorkerThread) {

src/plan/generational/immix/mutator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pub fn create_genimmix_mutator<VM: VMBinding>(
3232
) -> Mutator<VM> {
3333
let genimmix = mmtk.plan.downcast_ref::<GenImmix<VM>>().unwrap();
3434
let config = MutatorConfig {
35-
allocator_mapping: &*ALLOCATOR_MAPPING,
35+
allocator_mapping: &ALLOCATOR_MAPPING,
3636
space_mapping: Box::new(create_gen_space_mapping(&*mmtk.plan, &genimmix.gen.nursery)),
3737
prepare_func: &genimmix_mutator_prepare,
3838
release_func: &genimmix_mutator_release,

src/plan/immix/global.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ impl<VM: VMBinding> Plan for Immix<VM> {
9999
}
100100

101101
fn get_allocator_mapping(&self) -> &'static EnumMap<AllocationSemantics, AllocatorSelector> {
102-
&*ALLOCATOR_MAPPING
102+
&ALLOCATOR_MAPPING
103103
}
104104

105105
fn prepare(&mut self, tls: VMWorkerThread) {

src/plan/immix/mutator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ pub fn create_immix_mutator<VM: VMBinding>(
5656
) -> Mutator<VM> {
5757
let immix = plan.downcast_ref::<Immix<VM>>().unwrap();
5858
let config = MutatorConfig {
59-
allocator_mapping: &*ALLOCATOR_MAPPING,
59+
allocator_mapping: &ALLOCATOR_MAPPING,
6060
space_mapping: Box::new({
6161
let mut vec = create_space_mapping(RESERVED_ALLOCATORS, true, plan);
6262
vec.push((AllocatorSelector::Immix(0), &immix.immix_space));

src/plan/markcompact/global.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ impl<VM: VMBinding> Plan for MarkCompact<VM> {
7676
}
7777

7878
fn get_allocator_mapping(&self) -> &'static EnumMap<AllocationSemantics, AllocatorSelector> {
79-
&*ALLOCATOR_MAPPING
79+
&ALLOCATOR_MAPPING
8080
}
8181

8282
fn schedule_collection(&'static self, scheduler: &GCWorkScheduler<VM>) {

src/plan/markcompact/mutator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pub fn create_markcompact_mutator<VM: VMBinding>(
3232
) -> Mutator<VM> {
3333
let markcompact = plan.downcast_ref::<MarkCompact<VM>>().unwrap();
3434
let config = MutatorConfig {
35-
allocator_mapping: &*ALLOCATOR_MAPPING,
35+
allocator_mapping: &ALLOCATOR_MAPPING,
3636
space_mapping: Box::new({
3737
let mut vec = create_space_mapping(RESERVED_ALLOCATORS, true, plan);
3838
vec.push((AllocatorSelector::MarkCompact(0), markcompact.mc_space()));

src/plan/marksweep/global.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ impl<VM: VMBinding> Plan for MarkSweep<VM> {
6262
}
6363

6464
fn get_allocator_mapping(&self) -> &'static EnumMap<AllocationSemantics, AllocatorSelector> {
65-
&*ALLOCATOR_MAPPING
65+
&ALLOCATOR_MAPPING
6666
}
6767

6868
fn prepare(&mut self, tls: VMWorkerThread) {

0 commit comments

Comments
 (0)