Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build with modern versions of Rust #259

Open
rzuckerm opened this issue Nov 18, 2023 · 0 comments
Open

Cannot build with modern versions of Rust #259

rzuckerm opened this issue Nov 18, 2023 · 0 comments

Comments

@rzuckerm
Copy link

I'm using cargo build to build this project with Rust 1.74.0 on Alpine 3.18, and I'm seeing this error:

error[E0501]: cannot borrow `*self` as mutable because previous closure requires unique access
   --> pikelet/src/pass/core_to_surface.rs:137:27
    |
136 |     #[debug_ensures(self.names.len() == old(self.names.len()))]
    |     -----------------------------------------------------------
    |     |
    |     closure construction occurs here
    |     first borrow later used by call
137 |     pub fn from_term(&mut self, term: &Term) -> surface::Term {
    |                           ^^^^ second borrow occurs here
...
189 |                 let mut input_terms = vec![self.from_term(input_term)];
    |                                            ---- first borrow occurs due to use of `self` in closure

For more information about this error, try `rustc --explain E0501`.
error: could not compile `pikelet` (lib) due to previous error
warning: build failed, waiting for other jobs to finish...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant