We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12f379e commit 1380508Copy full SHA for 1380508
src/unstable.rs
@@ -216,6 +216,12 @@ pub struct LineColumn {
216
#[derive(Copy, Clone)]
217
pub struct Span(proc_macro::Span);
218
219
+impl From<proc_macro::Span> for ::Span {
220
+ fn from(proc_span: proc_macro::Span) -> ::Span {
221
+ ::Span(Span(proc_span))
222
+ }
223
+}
224
+
225
impl Span {
226
pub fn call_site() -> Span {
227
Span(proc_macro::Span::call_site())
0 commit comments