Skip to content

Commit

Permalink
expand the fixme
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis authored and scalexm committed Mar 20, 2019
1 parent 0cb7926 commit ca5a212
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/librustc/infer/nll_relate/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,10 @@ where
let vid = pair.vid();
let value_ty = pair.value_ty();

// FIXME -- this logic assumes invariance, but that is wrong
// FIXME -- this logic assumes invariance, but that is wrong.
// This only presently applies to chalk integration, as NLL
// doesn't permit type variables to appear on both sides (and
// doesn't use lazy norm).
match value_ty.sty {
ty::Infer(ty::TyVar(value_vid)) => {
// Two type variables: just equate them.
Expand Down

0 comments on commit ca5a212

Please sign in to comment.