if let Some(sp) = sp {
diag.span_label(sp, "contains invalid anchor");
}
+ if let AnchorFailure::RustdocAnchorConflict(Res::Primitive(_)) = failure {
+ diag.note("this restriction may be lifted in a future release");
+ diag.note("see https://github.com/rust-lang/rust/issues/83083 for more information");
+ }
});
}
|
LL | #![deny(rustdoc::broken_intra_doc_links)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ = note: this restriction may be lifted in a future release
+ = note: see https://github.com/rust-lang/rust/issues/83083 for more information
error: `Foo::f#hola` contains an anchor, but links to fields are already anchored
--> $DIR/anchors.rs:25:15
|
LL | /// [u32#hello]
| ^^^^^^^^^ contains invalid anchor
+ |
+ = note: this restriction may be lifted in a future release
+ = note: see https://github.com/rust-lang/rust/issues/83083 for more information
error: aborting due to 5 previous errors