diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2024-07-01 13:29:54 +1000 |
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2024-07-08 21:22:56 +1000 |
| commit | 63c04f05e60ce27311fc1b874907188616beb558 (patch) | |
| tree | 3f5586fdf64343de3ac0d65f454fbabe45e98cbd /tests/coverage-run-rustdoc | |
| parent | 9b2c58d1faf2dba1aef0e8556cec8e0ca6b7b996 (diff) | |
| download | rust-63c04f05e60ce27311fc1b874907188616beb558.tar.gz rust-63c04f05e60ce27311fc1b874907188616beb558.zip | |
coverage: Extract hole spans from HIR instead of MIR
This makes it possible to treat more kinds of nested item/code as holes, instead of being restricted to closures.
Diffstat (limited to 'tests/coverage-run-rustdoc')
| -rw-r--r-- | tests/coverage-run-rustdoc/doctest.coverage | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/coverage-run-rustdoc/doctest.coverage b/tests/coverage-run-rustdoc/doctest.coverage index 1bbf364759b..396811c5487 100644 --- a/tests/coverage-run-rustdoc/doctest.coverage +++ b/tests/coverage-run-rustdoc/doctest.coverage @@ -34,10 +34,10 @@ $DIR/doctest.rs: LL| |//! LL| |//! doctest returning a result: LL| 1|//! ``` - LL| 1|//! #[derive(Debug, PartialEq)] - LL| 1|//! struct SomeError { - LL| 1|//! msg: String, - LL| 1|//! } + LL| |//! #[derive(Debug, PartialEq)] + LL| |//! struct SomeError { + LL| |//! msg: String, + LL| |//! } LL| 1|//! let mut res = Err(SomeError { msg: String::from("a message") }); LL| 1|//! if res.is_ok() { LL| 0|//! res?; |
