You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
regression: parameter type may not live long enough #123280
What is annoying though is the error span which points to the entire async block because, when inside the async block, we draw implied bounds from its output type, allowing us to assume D: 'static, which then fails to be proven in the parent fn. See #115173 for a partial fix.
Activity
compiler-errors commentedon Apr 1, 2024
searched toolchains b6d2d84 through 7d3702e
Regression in 09bc67b
Attempting to search unrolled perf builds
ERROR: couldn't find perf build comment
searched nightlies: from nightly-2024-02-01 to nightly-2024-04-01
regressed nightly: nightly-2024-03-07
searched commit range: b6d2d84...7d3702e
regressed commit: 09bc67b
bisected with cargo-bisect-rustc v0.6.8
Host triple: x86_64-unknown-linux-gnu
Reproduce with:
compiler-errors commentedon Apr 1, 2024
I can't tell upon a quick search whether this was an expected regression from #121679/#115008. cc @lcnr @aliemjay
aliemjay commentedon Apr 1, 2024
This is expected. This is the culprit bound:
https://github.com/shishanyue/RW-RJR-Server/blob/0343d1021fbbd3282e29377491b531d5a7bc98eb/src/worker_pool.rs#L23
Minimized:
What is annoying though is the error span which points to the entire async block because, when inside the async block, we draw implied bounds from its output type, allowing us to assume
D: 'static, which then fails to be proven in the parent fn. See #115173 for a partial fix.aliemjay commentedon Apr 1, 2024
Ironically, this is accepted now and since forever because the rvalue never get the chance to be checked for well-formedness:
riking commentedon Apr 1, 2024
Upstream fix is https://github.com/shishanyue/RW-RJR-Server/pull/13
lcnr commentedon Apr 2, 2024
closing as expected and we have provided a PR to fix the issue
apiraino commentedon Apr 2, 2024
@aliemjay @lcnr anything here that should be noted in the release notes?
lcnr commentedon Apr 2, 2024
added a comment to #121679 (comment)