Skip to content

Commit 17c4103

Browse files
committed
add "text" sections for things that seem likely to be a problem
1 parent 29dc902 commit 17c4103

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/librustc/infer/canonical.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,9 @@ impl<'cx, 'gcx, 'tcx> InferCtxt<'cx, 'gcx, 'tcx> {
457457
/// *also* replace all free regions whatsoever. So for example a
458458
/// query like `T: Trait<'static>` would be canonicalized to
459459
///
460-
/// T: Trait<'?0>
460+
/// ```text
461+
/// T: Trait<'?0>
462+
/// ```
461463
///
462464
/// with a mapping M that maps `'?0` to `'static`.
463465
///
@@ -486,7 +488,9 @@ impl<'cx, 'gcx, 'tcx> InferCtxt<'cx, 'gcx, 'tcx> {
486488
/// there was an input query `T: Trait<'static>`, it would have
487489
/// been canonicalized to
488490
///
489-
/// T: Trait<'?0>
491+
/// ```text
492+
/// T: Trait<'?0>
493+
/// ```
490494
///
491495
/// with a mapping M that maps `'?0` to `'static`. But if we found that there
492496
/// exists only one possible impl of `Trait`, and it looks like

0 commit comments

Comments
 (0)