Vendor things
This commit is contained in:
parent
5deceec006
commit
977e3c17e5
19434 changed files with 10682014 additions and 0 deletions
15
third-party/vendor/thiserror-impl/src/span.rs
vendored
Normal file
15
third-party/vendor/thiserror-impl/src/span.rs
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
use proc_macro2::Span;
|
||||
use syn::Member;
|
||||
|
||||
pub trait MemberSpan {
|
||||
fn member_span(&self) -> Span;
|
||||
}
|
||||
|
||||
impl MemberSpan for Member {
|
||||
fn member_span(&self) -> Span {
|
||||
match self {
|
||||
Member::Named(ident) => ident.span(),
|
||||
Member::Unnamed(index) => index.span,
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue