mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-11 23:33:00 +00:00
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:
commit
1e2d6a804e
@ -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();
|
pub const NO_EXPANSION: SyntaxContext = SyntaxContext::empty();
|
||||||
|
|
||||||
/// Identifies an offset of a multi-byte character in a FileMap
|
/// Identifies an offset of a multi-byte character in a FileMap
|
||||||
|
Loading…
Reference in New Issue
Block a user