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
+6 -2
View File
@@ -457,7 +457,9 @@ fn unify_canonical_vars(
/// *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 @@ pub fn canonicalize_query<V>(&self, value: &V) -> (V::Canonicalized, CanonicalVa
/// 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