Skip to content

Cargo fix --edition leads to "error: overflow while checking ... requires drop" #90147

Closed
@Renmusxd

Description

@Renmusxd

Problem

Running cargo fix --edition on the crate qip=0.15.3 leads to an error:

$ cargo fix --edition
    Checking qip v0.15.3 (.../git/RustQIP)
   Migrating src/lib.rs from 2018 edition to 2021
error: overflow while checking whether `feynman_state::state::FeynmanState<P>` requires drop

error: could not compile `qip` due to previous error
warning: build failed, waiting for other jobs to finish...
error: overflow while checking whether `FeynmanState<P>` requires drop

error: build failed

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

  1. Download crate from github
  2. Run cargo fix --edition

Possible Solution(s)

No response

Notes

No response

Version

cargo 1.56.0 (4ed5d137b 2021-10-04)
release: 1.56.0
commit-hash: 4ed5d137baff5eccf1bae5a7b2ae4b57efad4a7d
commit-date: 2021-10-04

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-closuresArea: Closures (`|…| { … }`)A-edition-2021Area: The 2021 editionC-bugCategory: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions