-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Cargo fix --edition leads to "error: overflow while checking ... requires drop" #90147
Comments
Thanks for the report! I have transferred this to the rust-lang/rust repository since this is a rustc error. This is similar to #90142, though I'm surprised to not see an ICE message. This may also be related to #90024, though I'm not sure. Whatever you can do to construct a simplified repro would be appreciated. cc @rust-lang/wg-rfc-2229 |
Creating a new main.rs file with |
Here's a working example in a single file, turns out it wouldn't reproduce the bug in a |
I had the very similar #![warn(rust_2021_incompatible_closure_captures)]
struct Complex<T>(T);
pub struct FeynmanState<P> {
_substate: Vec<Vec<Complex<P>>>,
}
impl<P> FeynmanState<P> {
pub fn calculate_amplitude(&self) -> () {
todo!()
}
pub fn into_state(self) {
|| self.calculate_amplitude();
}
}
fn main() {
} It's probably from
|
@lqd If you pass |
@camelid I know, this was keeping the reproduction the same as the OP: via |
@lqd Ah, I see 👍 |
This is indeed a duplicate of #90024 |
Closing as this now appears to be fixed by #90218. |
Problem
Running
cargo fix --edition
on the crateqip=0.15.3
leads to an error:Building and running
cargo check
on either edition works fine however.I will try to make a simplified minimal example soon but needed to run and figured I'd report this then come back to it.
Thanks for all the work on the new version!
Steps
cargo fix --edition
Possible Solution(s)
No response
Notes
No response
Version
The text was updated successfully, but these errors were encountered: