//! Shamelessly stolen from [mockiato <3](https://github.com/myelin-ai/mockiato/blob/master/crates/mockiato-codegen/src/spanned.rs).
useproc_macro::Span;usesyn::spanned::Spanned;pub(crate)traitSpannedUnstable{/// Returns a [`proc_macro::Span`] which can be
/// used to print diagnostic messages.
fnspan_unstable(&self)-> Span;}impl<T> SpannedUnstable forTwhere
T: Spanned,
{fnspan_unstable(&self)-> Span{// Turns a `Span` from `syn` into a span from `proc_macro`.
// Note that this API is only available on nightly
self.span().unstable()}}