@@ -29,15 +29,15 @@ tcx.infer_ctxt().enter(|infcx| {
2929
3030Each inference context creates a short-lived type arena to store the
3131fresh types and things that it will create, as described in the
32- [ README in  the ` ty `  module] [ ty-readme  ] . This arena is created by the ` enter ` 
32+ [ chapter on  the ` ty `  module] [ ty-ch  ] . This arena is created by the ` enter ` 
3333function and disposed of after it returns.
3434
35- [ ty-readme  ] : ty.html 
35+ [ ty-ch  ] : ty.html 
3636
3737Within the closure, ` infcx `  has the type ` InferCtxt<'cx, 'gcx, 'tcx> ` 
3838for some fresh ` 'cx `  and ` 'tcx `  – the latter corresponds to the lifetime of
3939this temporary arena, and the ` 'cx `  is the lifetime of the ` InferCtxt `  itself.
40- (Again, see the [ ` ty `  README ] [ ty-readme  ]  for more details on this setup.)
40+ (Again, see the [ ` ty `  chapter ] [ ty-ch  ]  for more details on this setup.)
4141
4242The ` tcx.infer_ctxt `  method actually returns a build, which means
4343there are some kinds of configuration you can do before the ` infcx `  is
@@ -104,9 +104,9 @@ side-effects of constraining type variables and so forth. However, the
104104actual return type is not ` () ` , but rather ` InferOk<()> ` . The
105105` InferOk `  type is used to carry extra trait obligations – your job is
106106to ensure that these are fulfilled (typically by enrolling them in a
107- fulfillment context). See the [ trait README ]  for more background on that.
107+ fulfillment context). See the [ trait chapter ]  for more background on that.
108108
109- [ trait README  ] : trait-resolution.html 
109+ [ trait chapter  ] : trait-resolution.html 
110110
111111You can similarly enforce subtyping through ` infcx.at(..).sub(..) ` . The same
112112basic concepts as above apply.
0 commit comments