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

rorm-sql does not compile on nightly #64

Closed
myOmikron opened this issue Mar 24, 2024 · 2 comments
Closed

rorm-sql does not compile on nightly #64

myOmikron opened this issue Mar 24, 2024 · 2 comments

Comments

@myOmikron
Copy link
Member

myOmikron commented Mar 24, 2024

1st:

error: lifetime may not live long enough
   --> /home/omikron/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rorm-sql-0.8.2/src/lib.rs:398:33
    |
383 |     pub fn delete<'until_build, 'post_query>(
    |                   ------------  ----------- lifetime `'post_query` defined here
    |                   |
    |                   lifetime `'until_build` defined here
...
398 |             DBImpl::Postgres => DeleteImpl::Postgres(d),
    |                                 ^^^^^^^^^^^^^^^^^^^^^^^ method was supposed to return data with lifetime `'until_build` but it is returning data with lifetime `'post_query`
    |
    = help: consider adding the following bound: `'post_query: 'until_build`

2nd:

    error: lifetime may not live long enough
   --> /home/omikron/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rorm-sql-0.8.2/src/lib.rs:425:33
    |
408 |     pub fn update<'until_build, 'post_query>(
    |                   ------------  ----------- lifetime `'post_query` defined here
    |                   |
    |                   lifetime `'until_build` defined here
...
425 |             DBImpl::Postgres => UpdateImpl::Postgres(d),
    |                                 ^^^^^^^^^^^^^^^^^^^^^^^ method was supposed to return data with lifetime `'until_build` but it is returning data with lifetime `'post_query`
    |
    = help: consider adding the following bound: `'post_query: 'until_build`
    ```
@myOmikron
Copy link
Member Author

I searched with cargo-bisect-rustc for the exact regression commit:

searched nightlies: from nightly-2024-03-06 to nightly-2024-03-08
regressed nightly: nightly-2024-03-07
searched commit range: rust-lang/rust@b6d2d84...7d3702e
regressed commit: rust-lang/rust@09bc67b

bisected with cargo-bisect-rustc v0.6.8

Host triple: x86_64-unknown-linux-gnu
Reproduce with:

cargo bisect-rustc --start=2024-03-06 --end=2024-03-08 

@myOmikron
Copy link
Member Author

Should be fixed

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