diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 05:38:31 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 05:38:31 +0000 |
commit | 017a0f00b2f35e8f0d3c5175d558cd4e706c305d (patch) | |
tree | 669ae5e120a957271aafa639969279bac10004e4 /build | |
parent | Releasing progress-linux version 1.0.76-1~progress7.99u1. (diff) | |
download | rust-proc-macro2-017a0f00b2f35e8f0d3c5175d558cd4e706c305d.tar.xz rust-proc-macro2-017a0f00b2f35e8f0d3c5175d558cd4e706c305d.zip |
Merging upstream version 1.0.81.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'build')
-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) } |