Allow ?Sized implementations of Spanned

This commit is contained in:
David Tolnay 2019-08-03 20:31:58 -07:00
parent 1fcea59c2c
commit 6f736c2457
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -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())
}