]> git.lizzy.rs Git - rust.git/commitdiff
expand the fixme
authorNiko Matsakis <niko@alum.mit.edu>
Wed, 20 Mar 2019 16:52:36 +0000 (12:52 -0400)
committerscalexm <alexandre@scalexm.fr>
Wed, 20 Mar 2019 19:17:17 +0000 (20:17 +0100)
src/librustc/infer/nll_relate/mod.rs

index 735dcffc6d16dbf2a6414fa70a9322784dec1814..d8e7328c274b75fc69c8bc3e5ef5c95bfb9b47bf 100644 (file)
@@ -322,7 +322,10 @@ fn relate_ty_var<PAIR: VidValuePair<'tcx>>(
         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.