We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0cb7926 commit ca5a212Copy full SHA for ca5a212
src/librustc/infer/nll_relate/mod.rs
@@ -322,7 +322,10 @@ where
322
let vid = pair.vid();
323
let value_ty = pair.value_ty();
324
325
- // FIXME -- this logic assumes invariance, but that is wrong
+ // FIXME -- this logic assumes invariance, but that is wrong.
326
+ // This only presently applies to chalk integration, as NLL
327
+ // doesn't permit type variables to appear on both sides (and
328
+ // doesn't use lazy norm).
329
match value_ty.sty {
330
ty::Infer(ty::TyVar(value_vid)) => {
331
// Two type variables: just equate them.
0 commit comments