Fix intra-doc link issues exposed by new macro
These links never worked, but the lint was suppressed due to the fact that the span was pointing into the macro. With the new macro implementation, the span now points directly to the doc comment in the macro invocation, so it's no longer suppressed.
This commit is contained in:
parent
01efe6d5c2
commit
7b7b0f148c
2 changed files with 2 additions and 1 deletions
|
@ -1847,6 +1847,7 @@ rustc_index::newtype_index! {
|
||||||
/// rustc can identify that a field projection refers to either two different regions of memory
|
/// rustc can identify that a field projection refers to either two different regions of memory
|
||||||
/// or the same one between the base and the 'projection element'.
|
/// or the same one between the base and the 'projection element'.
|
||||||
/// Read more about projections in the [rustc-dev-guide][mir-datatypes]
|
/// Read more about projections in the [rustc-dev-guide][mir-datatypes]
|
||||||
|
///
|
||||||
/// [wrapper]: https://rustc-dev-guide.rust-lang.org/appendix/glossary.html#newtype
|
/// [wrapper]: https://rustc-dev-guide.rust-lang.org/appendix/glossary.html#newtype
|
||||||
/// [CFG]: https://rustc-dev-guide.rust-lang.org/appendix/background.html#cfg
|
/// [CFG]: https://rustc-dev-guide.rust-lang.org/appendix/background.html#cfg
|
||||||
/// [mir-datatypes]: https://rustc-dev-guide.rust-lang.org/mir/index.html#mir-data-types
|
/// [mir-datatypes]: https://rustc-dev-guide.rust-lang.org/mir/index.html#mir-data-types
|
||||||
|
|
|
@ -281,7 +281,7 @@ impl graph::WithPredecessors for CoverageGraph {
|
||||||
}
|
}
|
||||||
|
|
||||||
rustc_index::newtype_index! {
|
rustc_index::newtype_index! {
|
||||||
/// A node in the [control-flow graph][CFG] of CoverageGraph.
|
/// A node in the control-flow graph of CoverageGraph.
|
||||||
pub(super) struct BasicCoverageBlock {
|
pub(super) struct BasicCoverageBlock {
|
||||||
DEBUG_FORMAT = "bcb{}",
|
DEBUG_FORMAT = "bcb{}",
|
||||||
const START_BCB = 0,
|
const START_BCB = 0,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue