diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2018-03-11 07:13:14 -0400 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2018-03-13 11:22:08 -0400 |
| commit | 17c4103f3f0cc8bd4dea9de5e7ef155daf363cfe (patch) | |
| tree | 61da4bce1ccb69b9b35362a967ba2db8a58e1dd0 /src | |
| parent | 29dc902beb037c4cdcad3569d3fc7b72424e8779 (diff) | |
| download | rust-17c4103f3f0cc8bd4dea9de5e7ef155daf363cfe.tar.gz rust-17c4103f3f0cc8bd4dea9de5e7ef155daf363cfe.zip | |
add "text" sections for things that seem likely to be a problem
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc/infer/canonical.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/librustc/infer/canonical.rs b/src/librustc/infer/canonical.rs index 21d60bb8b36..9519baa3ff7 100644 --- a/src/librustc/infer/canonical.rs +++ b/src/librustc/infer/canonical.rs @@ -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 |
