aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Tolnay <dtolnay@gmail.com>2019-08-03 20:31:58 -0700
committerDavid Tolnay <dtolnay@gmail.com>2019-08-03 20:31:58 -0700
commit6f736c24574667097bdf8fc100d025dc81a88141 (patch)
tree5ba60e8f8ecbd4408c8236ca70f96c467704b3ba
parent1fcea59c2cc1faf412d3f24b2b067312a789cb82 (diff)
downloadplatform_external_rust_crates_quote-6f736c24574667097bdf8fc100d025dc81a88141.tar.gz
platform_external_rust_crates_quote-6f736c24574667097bdf8fc100d025dc81a88141.tar.bz2
platform_external_rust_crates_quote-6f736c24574667097bdf8fc100d025dc81a88141.zip
Allow ?Sized implementations of Spanned
-rw-r--r--src/spanned.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/spanned.rs b/src/spanned.rs
index a13785b..1ac1452 100644
--- a/src/spanned.rs
+++ b/src/spanned.rs
@@ -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())
}