Skip to content

Commit 7b7b0f1

Browse files
committed
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.
1 parent 01efe6d commit 7b7b0f1

File tree

2 files changed

+2
-1
lines changed
  • compiler

2 files changed

+2
-1
lines changed

compiler/rustc_middle/src/mir/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1847,6 +1847,7 @@ rustc_index::newtype_index! {
18471847
/// rustc can identify that a field projection refers to either two different regions of memory
18481848
/// or the same one between the base and the 'projection element'.
18491849
/// Read more about projections in the [rustc-dev-guide][mir-datatypes]
1850+
///
18501851
/// [wrapper]: https://rustc-dev-guide.rust-lang.org/appendix/glossary.html#newtype
18511852
/// [CFG]: https://rustc-dev-guide.rust-lang.org/appendix/background.html#cfg
18521853
/// [mir-datatypes]: https://rustc-dev-guide.rust-lang.org/mir/index.html#mir-data-types

compiler/rustc_mir_transform/src/coverage/graph.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ impl graph::WithPredecessors for CoverageGraph {
281281
}
282282

283283
rustc_index::newtype_index! {
284-
/// A node in the [control-flow graph][CFG] of CoverageGraph.
284+
/// A node in the control-flow graph of CoverageGraph.
285285
pub(super) struct BasicCoverageBlock {
286286
DEBUG_FORMAT = "bcb{}",
287287
const START_BCB = 0,

0 commit comments

Comments
 (0)