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
test/run-pass/issue-3154.rs:6:4: 6:9 error: cannot infer an appropriate lifetime due to conflicting requirements
test/run-pass/issue-3154.rs:6 thing{ x: x }
^~~~~
test/run-pass/issue-3154.rs:5:31: 7:1 note: first, the lifetime cannot outlive the anonymous lifetime #1 defined on the block at 5:31...
test/run-pass/issue-3154.rs:5 fn thing<Q>(x: &Q) -> thing<Q> {
test/run-pass/issue-3154.rs:6 thing{ x: x }
test/run-pass/issue-3154.rs:7 }
test/run-pass/issue-3154.rs:6:14: 6:15 note: ...due to the following expression
test/run-pass/issue-3154.rs:6 thing{ x: x }
^
test/run-pass/issue-3154.rs:5:31: 7:1 note: but, the lifetime must be valid for the anonymous lifetime #2 defined on the block at 5:31...
test/run-pass/issue-3154.rs:5 fn thing<Q>(x: &Q) -> thing<Q> {
test/run-pass/issue-3154.rs:6 thing{ x: x }
test/run-pass/issue-3154.rs:7 }
test/run-pass/issue-3154.rs:6:4: 6:9 note: ...due to the following expression
test/run-pass/issue-3154.rs:6 thing{ x: x }
^~~~~
I'm not convinced a borrow-check error is grounds for closing this. Tentatively reopening.
Would you mind trying to merge struct SemRelease and struct SemAndSignalRelease in libstd/sync.rs? They should be able to be merged into a single struct SemRelease<Q> { sem: &Sem<Q> } and likewise share one implementation.
I don't expect any borrow-check errors there, since the lifetimes work out with the currently-hand-monomorphised version.
Activity
bblum commentedon Aug 9, 2012
I had to work around this here: 604e4ad#L0R74
Add rw_arc.downgrade() + std and cfail tests. Tons of region FIXMEs..…
catamorphism commentedon Dec 6, 2012
As of b60a0be, this fails with a borrow check error, rather than ICEing.
yields:
bblum commentedon Dec 7, 2012
I'm not convinced a borrow-check error is grounds for closing this. Tentatively reopening.
Would you mind trying to merge
struct SemReleaseandstruct SemAndSignalReleaseinlibstd/sync.rs? They should be able to be merged into a singlestruct SemRelease<Q> { sem: &Sem<Q> }and likewise share one implementation.I don't expect any borrow-check errors there, since the lifetimes work out with the currently-hand-monomorphised version.
catamorphism commentedon Dec 7, 2012
I was able to merge the two structs and haven't gotten any compile errors yet, but I'm still waiting for tests to run.
catamorphism commentedon Dec 7, 2012
See 7a365e4
bblum commentedon Dec 7, 2012
Hot. Thanks!
missed-spans: Fix bogus check.
Auto merge of rust-lang#3154 - rust-lang:rustup-2023-11-04, r=RalfJung
Automatic toolchain upgrade to nightly-2024-04-20 (rust-lang#3154)