diff options
| author | Michael Howell <michael@notriddle.com> | 2024-10-26 17:46:22 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2024-10-26 17:56:38 -0700 |
| commit | 1819b4fa2339fcf416c8f3856f19190cab8c54ff (patch) | |
| tree | 834b41701135411878987068b3335be7cdf0d30d /tests/rustdoc-ui/doctest/doctest-output.edition2015.stdout | |
| parent | 9b18a122f769859dc00d7b2c73b03dc6a1152983 (diff) | |
| download | rust-1819b4fa2339fcf416c8f3856f19190cab8c54ff.tar.gz rust-1819b4fa2339fcf416c8f3856f19190cab8c54ff.zip | |
rustdoc: make doctest span tweak a 2024 edition change
Fixes #132203 This is a compatibility hack, because I think the new behavior is better. When an A `include_str!` B, and B `include_str!` C, the path to C should be resolved relative to B, not A. That's how `include!` itself works, so that's how `include_str!` with should work.
Diffstat (limited to 'tests/rustdoc-ui/doctest/doctest-output.edition2015.stdout')
| -rw-r--r-- | tests/rustdoc-ui/doctest/doctest-output.edition2015.stdout | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/rustdoc-ui/doctest/doctest-output.edition2015.stdout b/tests/rustdoc-ui/doctest/doctest-output.edition2015.stdout new file mode 100644 index 00000000000..0e2e30390ad --- /dev/null +++ b/tests/rustdoc-ui/doctest/doctest-output.edition2015.stdout @@ -0,0 +1,8 @@ + +running 3 tests +test $DIR/doctest-output.rs - (line 12) ... ok +test $DIR/doctest-output.rs - ExpandedStruct (line 28) ... ok +test $DIR/doctest-output.rs - foo::bar (line 22) ... ok + +test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME + |
