about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-02-20 08:38:28 +0000
committerbors <bors@rust-lang.org>2022-02-20 08:38:28 +0000
commit6d7aa4763fe7f737d6add4261b9e050b36701089 (patch)
tree3f48ea10f5e8a10c06d0d4e93bea05ac7fe0a5e9 /compiler/rustc_codegen_gcc
parenta6fe969541d14ad8ba286c47416e6d3f58a1c9a4 (diff)
parent1a6d41cdb5219763eeaf3604e5805a854e5ba931 (diff)
downloadrust-6d7aa4763fe7f737d6add4261b9e050b36701089.tar.gz
rust-6d7aa4763fe7f737d6add4261b9e050b36701089.zip
Auto merge of #93605 - notriddle:notriddle/rustdoc-html-tags-resolve, r=GuillaumeGomez
rustdoc: resolve intra-doc links when checking HTML

Similar to #86451

CC #67799

Given this test case:

```rust
#![warn(rustdoc::invalid_html_tags)]
#![warn(rustdoc::broken_intra_doc_links)]

pub struct ExistentStruct<T>(T);

/// This [test][ExistentStruct<i32>] thing!
pub struct NoError;
```

This pull request silences the following, spurious warning:

```text
warning: unclosed HTML tag `i32`
 --> test.rs:6:31
  |
6 | /// This [test][ExistentStruct<i32>] thing!
  |                               ^^^^^
  |
note: the lint level is defined here
 --> test.rs:1:9
  |
1 | #![warn(rustdoc::invalid_html_tags)]
  |         ^^^^^^^^^^^^^^^^^^^^^^^^^^
help: try marking as source code
  |
6 | /// This [test][`ExistentStruct<i32>`] thing!
  |                 +                   +

warning: 1 warning emitted
```
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions