Stream: git-wasmtime

Topic: wasmtime / PR #1827 Correct version of region dependency ...


view this post on Zulip Wasmtime GitHub notifications bot (Jun 05 2020 at 10:29):

bjorn3 opened PR #1827 from patch-2 to master:

Using region 2.0.0 fails with:

error[E0599]: no associated item named `READ_WRITE` found for struct `region::protect::Protection` in the current scope
   --> /home/bjorn/.cargo/git/checkouts/wasmtime-41807828cb3a7a7e/00abfcd/cranelift/simplejit/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/bjorn/.cargo/git/checkouts/wasmtime-41807828cb3a7a7e/00abfcd/cranelift/simplejit/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/bjorn/.cargo/git/checkouts/wasmtime-41807828cb3a7a7e/00abfcd/cranelift/simplejit/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

view this post on Zulip Wasmtime GitHub notifications bot (Jun 05 2020 at 14:27):

alexcrichton merged PR #1827.


Last updated: Dec 23 2024 at 12:05 UTC