Rollup merge of #44450 - SergioBenitez:master, r=nrc

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

A simple `impl`.

r? @nrc
This commit is contained in:
Corey Farwell 2017-09-14 22:32:37 -04:00 committed by GitHub
commit 1e2d6a804e

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