Skip to content
Permalink
Browse files

expand the fixme

  • Loading branch information...
nikomatsakis authored and scalexm committed Mar 20, 2019
1 parent 0cb7926 commit ca5a2122cc68fa14e72f1631ee5e9bbf2ac9c94f
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/librustc/infer/nll_relate/mod.rs
@@ -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.

0 comments on commit ca5a212

Please sign in to comment.
You can’t perform that action at this time.