Skip to content

Commit

Permalink
Add another non-public comment on Spanned trait
Browse files Browse the repository at this point in the history
The whole surrounding module is already commented "not public API" but
in my experience people always find a way to miss that kind of thing.
  • Loading branch information
dtolnay committed Mar 12, 2023
1 parent cd7c205 commit 3967c87
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/spanned.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use crate::ToTokens;
use proc_macro2::extra::DelimSpan;
use proc_macro2::{Span, TokenStream};

// Not public API other than via the syn crate. Use syn::spanned::Spanned.
pub trait Spanned: private::Sealed {
fn __span(&self) -> Span;
}
Expand Down

0 comments on commit 3967c87

Please sign in to comment.