File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ macro_rules! with_api {
94
94
fn source_file( $self: $S:: Span ) -> $S:: SourceFile ;
95
95
fn parent( $self: $S:: Span ) -> Option <$S:: Span >;
96
96
fn source( $self: $S:: Span ) -> $S:: Span ;
97
- fn position ( $self: $S:: Span ) -> Range <u32 >;
97
+ fn byte_range ( $self: $S:: Span ) -> Range <usize >;
98
98
fn start( $self: $S:: Span ) -> LineColumn ;
99
99
fn end( $self: $S:: Span ) -> LineColumn ;
100
100
fn before( $self: $S:: Span ) -> $S:: Span ;
@@ -295,7 +295,6 @@ mark_noop! {
295
295
& ' _ str ,
296
296
String ,
297
297
u8 ,
298
- u32 ,
299
298
usize ,
300
299
Delimiter ,
301
300
LitKind ,
Original file line number Diff line number Diff line change @@ -490,8 +490,8 @@ impl Span {
490
490
491
491
/// Returns the span's byte position range in the source file.
492
492
#[ unstable( feature = "proc_macro_span" , issue = "54725" ) ]
493
- pub fn position ( & self ) -> Range < u32 > {
494
- self . 0 . position ( )
493
+ pub fn byte_range ( & self ) -> Range < usize > {
494
+ self . 0 . byte_range ( )
495
495
}
496
496
497
497
/// Gets the starting line/column in the source file for this span.
You can’t perform that action at this time.
0 commit comments