File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -940,11 +940,12 @@ impl Debug for Literal {
940940/// This function is useful for programs that process more than 2^32 bytes of
941941/// text on a single thread. The internal representation of `proc_macro2::Span`
942942/// uses 32-bit integers to represent offsets and those will overflow when
943- /// processing more than 2^32 bytes. This function resets all offsets
944- /// and thereby also invalidates any previously created `proc_macro2::Span`.
943+ /// processing more than 2^32 bytes. This function resets all offsets and
944+ /// thereby also invalidates any previously created `proc_macro2::Span`.
945945///
946946/// This function requires the `span-locations` feature to be enabled. This
947- /// function is not applicable to and will panic if called from a procedural macro.
947+ /// function is not applicable to and will panic if called from a procedural
948+ /// macro.
948949#[ cfg( span_locations) ]
949950pub fn invalidate_current_thread_spans ( ) {
950951 if inside_proc_macro ( ) {
You can’t perform that action at this time.
0 commit comments