diff options
| author | bors <bors@rust-lang.org> | 2022-07-01 20:14:34 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-07-01 20:14:34 +0000 |
| commit | 46b8c23f3eb5e4d0e0aa27eb3f20d5b8fc3ed51f (patch) | |
| tree | 06c025dccbade55a55b020f16453d44257832a74 /src/test/rustdoc-ui/lint-missing-doc-code-example.stderr | |
| parent | 5018181c79a6fe37913fd931005ad2a63c85be7b (diff) | |
| parent | 42e4eee8931479a02c11c88ddaddb3a494e136c6 (diff) | |
| download | rust-46b8c23f3eb5e4d0e0aa27eb3f20d5b8fc3ed51f.tar.gz rust-46b8c23f3eb5e4d0e0aa27eb3f20d5b8fc3ed51f.zip | |
Auto merge of #93967 - cjgillot:short-struct-span, r=petrochenkov
Shorten def_span for more items. The `def_span` query only returns the signature span for functions. Struct/enum/union definitions can also have a very long body. This PR shortens the associated span.
Diffstat (limited to 'src/test/rustdoc-ui/lint-missing-doc-code-example.stderr')
| -rw-r--r-- | src/test/rustdoc-ui/lint-missing-doc-code-example.stderr | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/test/rustdoc-ui/lint-missing-doc-code-example.stderr b/src/test/rustdoc-ui/lint-missing-doc-code-example.stderr index 37157978542..9e51ecd2ba0 100644 --- a/src/test/rustdoc-ui/lint-missing-doc-code-example.stderr +++ b/src/test/rustdoc-ui/lint-missing-doc-code-example.stderr @@ -1,9 +1,8 @@ error: missing code example in this documentation --> $DIR/lint-missing-doc-code-example.rs:19:1 | -LL | / pub mod module1 { -LL | | } - | |_^ +LL | pub mod module1 { + | ^^^^^^^^^^^^^^^ | note: the lint level is defined here --> $DIR/lint-missing-doc-code-example.rs:2:9 |
