Stream: git-wasmtime

Topic: wasmtime / PR #1978 Updated region versions


view this post on Zulip Wasmtime GitHub notifications bot (Jul 04 2020 at 21:09):

pythondude325 opened PR #1978 from region-version-fix to main:

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

Using region version 2.1.0 or 2.1.2 fails with the following errors:

   Compiling cranelift-simplejit v0.65.0
error[E0599]: no associated item named `READ_WRITE` found for struct `region::protect::Protection` in the current scope
   --> /home/gis/.cargo/registry/src/github.com-1ecc6299db9ec823/cranelift-simplejit-0.65.0/src/memory.rs:114:73
    |
114 |                 region::protect(self.ptr, self.len, region::Protection::READ_WRITE)
    |                                                                         ^^^^^^^^^^ associated item not found in `region::protect::Protection`

error[E0599]: no associated item named `READ_EXECUTE` found for struct `region::protect::Protection` in the current scope
   --> /home/gis/.cargo/registry/src/github.com-1ecc6299db9ec823/cranelift-simplejit-0.65.0/src/memory.rs:194:71
    |
194 |                         region::protect(ptr, len, region::Protection::READ_EXECUTE)
    |                                                                       ^^^^^^^^^^^^ associated item not found in `region::protect::Protection`

error[E0599]: no associated item named `READ` found for struct `region::protect::Protection` in the current scope
   --> /home/gis/.cargo/registry/src/github.com-1ecc6299db9ec823/cranelift-simplejit-0.65.0/src/memory.rs:223:71
    |
223 |                         region::protect(ptr, len, region::Protection::READ)
    |                                                                       ^^^^ associated item not found in `region::protect::Protection`

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0599`.
error: Could not compile `cranelift-simplejit`.

To learn more, run the command again with --verbose.

This was dicussed with @bjorn3 on Zulip.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 06 2020 at 14:26):

alexcrichton merged PR #1978.


Last updated: Nov 22 2024 at 17:03 UTC