summaryrefslogtreecommitdiffstats
path: root/build/probe.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 05:38:30 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 05:38:30 +0000
commit7a5d77da248199cc79019b3e264d2b8f5186f883 (patch)
treea8b0ee19e56b828c857f2ce0d6865298ee62bccf /build/probe.rs
parentAdding debian version 1.0.76-1. (diff)
downloadrust-proc-macro2-7a5d77da248199cc79019b3e264d2b8f5186f883.tar.xz
rust-proc-macro2-7a5d77da248199cc79019b3e264d2b8f5186f883.zip
Merging upstream version 1.0.81.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--build/probe.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/build/probe.rs b/build/probe.rs
index 5afa13a..2c4947a 100644
--- a/build/probe.rs
+++ b/build/probe.rs
@@ -6,9 +6,13 @@
extern crate proc_macro;
-use core::ops::RangeBounds;
+use core::ops::{Range, RangeBounds};
use proc_macro::{Literal, Span};
+pub fn byte_range(this: &Span) -> Range<usize> {
+ this.byte_range()
+}
+
pub fn join(this: &Span, other: Span) -> Option<Span> {
this.join(other)
}