Repository navigation
Borrow checker error on nightly even when the type is 'static #106332
Description
Activity
@rustbot modify labels: +regression-from-stable-to-beta
- addedregression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.I-prioritizeIssue needs a team member to assess the impact. Will be replaced by P-{low,medium,high,critical}Issue needs a team member to assess the impact. Will be replaced by P-{low,medium,high,critical}
on Dec 31, 2022 @rustbot labels +E-needs-bisection
- addedE-needs-mcveCall for participation: This issue has a repro, but needs a Minimal Complete and Verifiable ExampleCall for participation: This issue has a repro, but needs a Minimal Complete and Verifiable ExampleE-needs-bisectionCall for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustcCall for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustc
on Dec 31, 2022 searched nightlies: from nightly-2022-12-09 to nightly-2022-12-27
regressed nightly: nightly-2022-12-10
searched commit range: 7632db0...dfe3fe7
regressed commit: 7701a7e (#105456)bisected with cargo-bisect-rustc v0.6.4
Host triple: x86_64-unknown-linux-gnu
Reproduce with:cargo bisect-rustc --regress=error -- check
Maybe its #105317?- removedE-needs-bisectionCall for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustcCall for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustc
on Dec 31, 2022 - addedE-needs-bisectionCall for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustcCall for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustc
on Dec 31, 2022 You can manually bisect the PRs in that rollup, #105456 (comment) contains the list of each of their artifacts.
I'd start by looking at #105255 though.
- removedE-needs-bisectionCall for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustcCall for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustc
on Dec 31, 2022 Yep, it's #105255. cc @cjgillot @compiler-errors
Possible other examples from beta crater:
Reacted by Jiahao XUAny update on this?
I've tested the code on:
rustc 1.68.0-nightly (659e169d3 2023-01-04) binary: rustc commit-hash: 659e169d37990b9c730a59a96081f2ef7afbe8f1 commit-date: 2023-01-04 host: aarch64-apple-darwin release: 1.68.0-nightly LLVM version: 15.0.6and it still failed.
@NobodyXu AFAICS your bug report has been acknowledged and has an assignee, looks like it's a regression in the beta channel (comment). The new stable will be out in a few weeks, might be fixed by then.
Thanks, so looks like it's going to take quite some time.
I might go ahead and releasecargo-binstallwithout waiting for this one.WG-prioritization assigning priority (Zulip discussion).
@rustbot label -I-prioritize +P-high +T-compiler
- addedP-highHigh priorityHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.and removedI-prioritizeIssue needs a team member to assess the impact. Will be replaced by P-{low,medium,high,critical}Issue needs a team member to assess the impact. Will be replaced by P-{low,medium,high,critical}
on Jan 10, 2023 - added a commit that references this issue
on Jan 12, 2023
Compiling the
binstalkfrom cargo-bins/cargo-binstall#646 failed on nightly due to lifetime error while it works on stable.The code in question looks like this and is in taken from crates/binstalk/src/fetchers/gh_crate_meta.rs
On nightly, this failed with:
Meta
rustc +nightly --version --verbose: