File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -436,7 +436,8 @@ impl Span {
436
436
437
437
/// Get the starting line/column in the source file for this span.
438
438
///
439
- /// This method requires the `"span-locations"` feature to be enabled.
439
+ /// This method requires the `"span-locations"` feature to be enabled and to be on `nightly`. On `stable` rust this
440
+ /// currently returns a mocked LineColumn (`LineColumn { line: 0, column: 0 }`).
440
441
#[ cfg( span_locations) ]
441
442
pub fn start ( & self ) -> LineColumn {
442
443
let imp:: LineColumn { line, column } = self . inner . start ( ) ;
@@ -445,7 +446,8 @@ impl Span {
445
446
446
447
/// Get the ending line/column in the source file for this span.
447
448
///
448
- /// This method requires the `"span-locations"` feature to be enabled.
449
+ /// This method requires the `"span-locations"` feature to be enabled and to be on `nightly`. On `stable` rust this
450
+ /// currently returns a mocked LineColumn (`LineColumn { line: 0, column: 0 }`).
449
451
#[ cfg( span_locations) ]
450
452
pub fn end ( & self ) -> LineColumn {
451
453
let imp:: LineColumn { line, column } = self . inner . end ( ) ;
You can’t perform that action at this time.
0 commit comments