Add impl From<Vec<Span>> for MultiSpan.

This commit is contained in:
Sergio Benitez 2017-09-09 02:07:31 -07:00
parent dee6d0f62e
commit 5d3626d0f2

View File

@ -434,6 +434,12 @@ impl From<Span> for MultiSpan {
}
}
impl From<Vec<Span>> for MultiSpan {
fn from(spans: Vec<Span>) -> MultiSpan {
MultiSpan::from_spans(spans)
}
}
pub const NO_EXPANSION: SyntaxContext = SyntaxContext::empty();
/// Identifies an offset of a multi-byte character in a FileMap