Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use outermost invocation span for doctest names
Fixes #70090.
- Loading branch information
Showing
4 changed files
with
30 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#[macro_export] | ||
macro_rules! attrs_on_struct { | ||
( $( #[$attr:meta] )* ) => { | ||
$( #[$attr] )* | ||
pub struct ExpandedStruct; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
|
||
running 2 tests | ||
test $DIR/doctest-output.rs - (line 5) ... ok | ||
test $DIR/doctest-output.rs - foo::bar (line 11) ... ok | ||
running 3 tests | ||
test $DIR/doctest-output.rs - (line 7) ... ok | ||
test $DIR/doctest-output.rs - ExpandedStruct (line 23) ... ok | ||
test $DIR/doctest-output.rs - foo::bar (line 17) ... ok | ||
|
||
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out | ||
test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out | ||
|