diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 05:38:30 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 05:38:30 +0000 |
commit | 7a5d77da248199cc79019b3e264d2b8f5186f883 (patch) | |
tree | a8b0ee19e56b828c857f2ce0d6865298ee62bccf /build/probe.rs | |
parent | Adding debian version 1.0.76-1. (diff) | |
download | rust-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.rs | 6 |
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) } |