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 in clone impl of enum with variant that has a field with a bivariant substitution #129286
Activity
compiler-errors commentedon Aug 20, 2024
Weirdly, this also only happens when the
Clone::clonecall is being directly passed toEnum::Variant. Is this due toExpectation, perhaps?edit: yep, it has to do with the
Expectation. Minimized the code a bit more.compiler-errors commentedon Aug 20, 2024
rust/compiler/rustc_hir_typeck/src/fn_ctxt/checks.rs
Lines 299 to 305 in 79611d9
lol we're not actually constraining the target of the coercion properly
compiler-errors commentedon Aug 20, 2024
Minimal:
Auto merge of rust-lang#129317 - compiler-errors:expectation-subtypin…
Auto merge of rust-lang#129317 - compiler-errors:expectation-subtypin…
Auto merge of rust-lang#129317 - compiler-errors:expectation-subtypin…
Auto merge of rust-lang#129317 - compiler-errors:expectation-subtypin…