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

regression: error compiling sqlx #117660

Closed
Noratrieb opened this issue Nov 7, 2023 · 1 comment
Closed

regression: error compiling sqlx #117660

Noratrieb opened this issue Nov 7, 2023 · 1 comment
Labels
C-bug Category: This is a bug. regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-types Relevant to the types team, which will review and decide on the PR/issue.

Comments

@Noratrieb
Copy link
Member

Code

I tried this code:

[package]
name = "a"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
sqlx = "=0.7.2"

I expected to see this happen: it compiles

Instead, this happened:

error[E0308]: mismatched types
   --> /home/nilsh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.7.2/src/any/database.rs:32:21
    |
32  |     type Database = Any;
    |                     ^^^ lifetime mismatch
    |
    = note: expected associated type `<any::database::Any as HasValueRef<'r>>::Database`
               found associated type `<any::database::Any as HasValueRef<'r>>::Database`
note: the required lifetime does not necessarily outlive the lifetime `'r` as defined here
   --> /home/nilsh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.7.2/src/any/database.rs:31:6
    |
31  | impl<'r> HasValueRef<'r> for Any {
    |      ^^
note: the lifetime requirement is introduced here
   --> /home/nilsh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.7.2/src/database.rs:119:20
    |
119 |     type Database: Database;
    |                    ^^^^^^^^

searched nightlies: from nightly-2023-11-01 to nightly-2023-11-07
regressed nightly: nightly-2023-11-04
searched commit range: a2f5f96...1bb6553
regressed commit: 2520ca8

bisected with cargo-bisect-rustc v0.6.7

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

cargo bisect-rustc 2023-11-01 --end 2023-11-07 --access github --regress error

regressed in #117131
looks like you did a new projection oops @compiler-errors

@Noratrieb Noratrieb added C-bug Category: This is a bug. regression-untriaged Untriaged performance or correctness regression. labels Nov 7, 2023
@rustbot rustbot added I-prioritize Issue: Indicates that prioritization has been requested for this issue. needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. labels Nov 7, 2023
@Noratrieb Noratrieb added regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-types Relevant to the types team, which will review and decide on the PR/issue. and removed needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. regression-untriaged Untriaged performance or correctness regression. labels Nov 7, 2023
@Noratrieb
Copy link
Member Author

ah this is duplicate of #117598 which I didn't find cause it wasn't labelled as a regression, great

@Noratrieb Noratrieb closed this as not planned Won't fix, can't repro, duplicate, stale Nov 7, 2023
@apiraino apiraino removed the I-prioritize Issue: Indicates that prioritization has been requested for this issue. label Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-types Relevant to the types team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

3 participants