aboutsummaryrefslogtreecommitdiff
path: root/src/fallback.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/fallback.rs')
-rw-r--r--src/fallback.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fallback.rs b/src/fallback.rs
index baeed69..7f3cc4e 100644
--- a/src/fallback.rs
+++ b/src/fallback.rs
@@ -414,6 +414,12 @@ impl fmt::Debug for Span {
}
}
+pub fn debug_span_field_if_nontrivial(debug: &mut fmt::DebugStruct, span: Span) {
+ if cfg!(procmacro2_semver_exempt) {
+ debug.field("span", &span);
+ }
+}
+
#[derive(Clone)]
pub struct Group {
delimiter: Delimiter,