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.
[ ] This has been discussed in issue #..., or if not, please tell us why
here.[ ] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[ ] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so. The list of
suggested reviewers on the right can help you.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.
alexcrichton merged PR #1978.
Last updated: Nov 22 2024 at 17:03 UTC