commit | a19a8199b5f0a97fa71edfc8052f239de839c858 | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Sat Sep 01 02:36:16 2018 -0700 |
committer | David Tolnay <dtolnay@gmail.com> | Sat Sep 01 02:36:16 2018 -0700 |
tree | 87c1bb169076209eaeaa82a402dfd8f0d745c343 | |
parent | f5d3045e1091ac5bf6ac269ab7ae42756aba1569 [diff] |
Use the caller's span for apostrophe in Lifetime::new
diff --git a/src/lifetime.rs b/src/lifetime.rs index e19cc97..6f00b56 100644 --- a/src/lifetime.rs +++ b/src/lifetime.rs
@@ -68,7 +68,7 @@ } Lifetime { - apostrophe: Span::call_site(), + apostrophe: span, ident: Ident::new(&s[1..], span), } }