Fix docs for future pulldown migration

This commit is contained in:
Malo Jaffré
2017-12-31 17:17:01 +01:00
parent 8395798d1a
commit cbb32a9418
26 changed files with 128 additions and 94 deletions

View File

@@ -391,6 +391,7 @@ impl CodeMap {
/// Returns `Some(span)`, a union of the lhs and rhs span. The lhs must precede the rhs. If
/// there are gaps between lhs and rhs, the resulting union will cross these gaps.
/// For this to work, the spans have to be:
///
/// * the ctxt of both spans much match
/// * the lhs span needs to end on the same line the rhs span begins
/// * the lhs span must start at or before the rhs span