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
[INFO] [stdout] error[E0277]: the trait bound `(dyn LoopableJob + 'static): Job` is not satisfied
[INFO] [stdout] --> src/service.rs:190:18
[INFO] [stdout] |
[INFO] [stdout] 190 | self.job.run_once().await
[INFO] [stdout] | ^^^^^^^^ the trait `Job` is not implemented for `(dyn LoopableJob + 'static)`
[INFO] [stdout] |
[INFO] [stdout] help: consider introducing a `where` clause, but there might be an alternative better way to express this requirement
[INFO] [stdout] |
[INFO] [stdout] 188 | impl Job for LoopingJobService where (dyn LoopableJob + 'static): Job {
[INFO] [stdout] | ++++++++++++++++++++++++++++++++++++++
Regression in rust-lang-ci@e890bd9
The PR introducing the regression in this rollup is #120323: On E0277 be clearer about implicit Sized bounds on type p…
searched nightlies: from nightly-2024-01-01 to nightly-2024-03-18
regressed nightly: nightly-2024-02-06
searched commit range: 268dbbb...f067fd6
regressed commit: 4d87c4a
Implicitly reordering the Sized predicates as a side-effect of #120323 is the problem here.
pubtraitJob:AsJob{fnrun_once(&self);}impl<F:Fn()>JobforF{fnrun_once(&self){todo!()}}pubtraitAsJob{}impl<T:Job + Sized>AsJobforT{// <----- changing this to `Sized + Job` or just `Job` will FIX it.}pubstructLoopingJobService{job:Box<dynJob>,}implJobforLoopingJobService{fnrun_once(&self){self.job.run_once()}}
I assume this is because of an overflow on the AsJob impl that isn't cut off short by the Sized predicate being impossible to satisfy?
Activity
compiler-errors commentedon Mar 31, 2024
Regression in rust-lang-ci@e890bd9
The PR introducing the regression in this rollup is #120323: On E0277 be clearer about implicit
Sizedbounds on type p…searched nightlies: from nightly-2024-01-01 to nightly-2024-03-18
regressed nightly: nightly-2024-02-06
searched commit range: 268dbbb...f067fd6
regressed commit: 4d87c4a
bisected with cargo-bisect-rustc v0.6.8
Host triple: x86_64-unknown-linux-gnu
Reproduce with:
This PR definitely should not have changed behavior :/
cc @estebank
compiler-errors commentedon Mar 31, 2024
I'll look into what's going on with it anyways -- it at least needs a MCVE
@rustbot claim
compiler-errors commentedon Mar 31, 2024
Implicitly reordering the
Sizedpredicates as a side-effect of #120323 is the problem here.I assume this is because of an overflow on the
AsJobimpl that isn't cut off short by theSizedpredicate being impossible to satisfy?apiraino commentedon Apr 2, 2024
WG-prioritization assigning priority (Zulip discussion).
@rustbot label -I-prioritize +P-high
Rollup merge of rust-lang#123302 - compiler-errors:sized-bound-first,…
Rollup merge of rust-lang#123302 - compiler-errors:sized-bound-first,…
Unrolled build for rust-lang#123302
cuviper commentedon Apr 12, 2024
#123302 was backported in #123466.