Skip to content

Bug borrowing certain rvalues, maybe #2280

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

Closed
graydon opened this issue Apr 24, 2012 · 0 comments
Closed

Bug borrowing certain rvalues, maybe #2280

graydon opened this issue Apr 24, 2012 · 0 comments
Assignees
Labels
A-codegen Area: Code generation A-lifetimes Area: Lifetimes / regions
Milestone

Comments

@graydon
Copy link
Contributor

graydon commented Apr 24, 2012

I'm not sure exactly what's causing these, but the compiler fails during codegen for a few cases of borrowing. It has something to do with borrowing temporary expressions. I think. I'll put FIXME markers connected to this bug in the files in question (a foreach loop in cargo/cargo.rs, another in rustc/middle/trans/base.rs, another in rustc/middle/tstate/auxiliary.rs, and a final one in test/bench/shootout-mandelbrot.rs). The commit that changes those (and will be linked here momentarily) shows the change I had to make to get it working with borrowed regions.

@ghost ghost assigned nikomatsakis Apr 24, 2012
bors added a commit to rust-lang-ci/rust that referenced this issue Sep 22, 2022
celinval added a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
After updating our dependencies, running `cargo build-dev` always trigger the recompilation of a few dependencies as well as `kani-driver` and `kani-compiler`.

This seems to be caused by [this change](bytecodealliance/rustix#544) on `rustix` dependency.

The problem here is that we share the same build folder for our tools and our binaries. But they build with slightly different cargo arguments, and this package decided to make their build script very sensitive to changes to their environment

To overcome this, force `cargo build-dev` to use a different folder for the tools build.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-codegen Area: Code generation A-lifetimes Area: Lifetimes / regions
Projects
None yet
Development

No branches or pull requests

2 participants