add "text" sections for things that seem likely to be a problem

This commit is contained in:
Niko Matsakis 2018-03-11 07:13:14 -04:00
parent 29dc902beb
commit 17c4103f3f

View file

@ -457,7 +457,9 @@ impl<'cx, 'gcx, 'tcx> InferCtxt<'cx, 'gcx, 'tcx> {
/// *also* replace all free regions whatsoever. So for example a
/// query like `T: Trait<'static>` would be canonicalized to
///
/// T: Trait<'?0>
/// ```text
/// T: Trait<'?0>
/// ```
///
/// with a mapping M that maps `'?0` to `'static`.
///
@ -486,7 +488,9 @@ impl<'cx, 'gcx, 'tcx> InferCtxt<'cx, 'gcx, 'tcx> {
/// there was an input query `T: Trait<'static>`, it would have
/// been canonicalized to
///
/// T: Trait<'?0>
/// ```text
/// T: Trait<'?0>
/// ```
///
/// with a mapping M that maps `'?0` to `'static`. But if we found that there
/// exists only one possible impl of `Trait`, and it looks like