mirror of
https://gitee.com/openharmony/third_party_rust_quote
synced 2024-11-30 10:50:38 +00:00
Allow ?Sized implementations of Spanned
This commit is contained in:
parent
1fcea59c2c
commit
6f736c2457
@ -11,7 +11,7 @@ impl Spanned for Span {
|
||||
}
|
||||
}
|
||||
|
||||
impl<T: ToTokens> Spanned for T {
|
||||
impl<T: ?Sized + ToTokens> Spanned for T {
|
||||
fn __span(&self) -> Span {
|
||||
join_spans(self.into_token_stream())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user