Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

Commit

Permalink
into_iter() -> iter() for arrays
Browse files Browse the repository at this point in the history
This was previously accepted by the compiler but is being phased out;
it will become a hard error in a future rustc release.

See rust-lang/rust#66145
>
  • Loading branch information
jedisct1 committed Dec 20, 2019
1 parent a765d70 commit e7c9b17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lucet-runtime/lucet-runtime-internals/src/region/mmap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ impl RegionInternal for MmapRegion {
// make the sigstack read/writable
(slot.sigstack, SIGSTKSZ),
]
.into_iter()
.iter()
{
// eprintln!("setting r/w {:p}[{:x}]", *ptr, len);
unsafe { mprotect(*ptr, *len, ProtFlags::PROT_READ | ProtFlags::PROT_WRITE)? };
Expand Down Expand Up @@ -138,7 +138,7 @@ impl RegionInternal for MmapRegion {
(slot.globals, slot.limits.globals_size),
(slot.sigstack, SIGSTKSZ),
]
.into_iter()
.iter()
{
// eprintln!("setting none {:p}[{:x}]", *ptr, len);
unsafe {
Expand Down

0 comments on commit e7c9b17

Please sign in to comment.