You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into this with miette::Report and miette::Diagnostic, but I believe it is not specific to just miette.
I have a struct defined something like this (simplified):
use miette::{Diagnostic,Report};/// This implements [`Diagnostic`] and contains a [`Report`].#[derive(Diagnostic)]structMyDiagnostic{#[diagnostic_source]source:Report,}
When running cargo deadlinks --check-intra-doc-links, Report and Diagnostic get flagged, as well as Diagnostic::labels and Diagnostic::source_code, where the latter two are linked in echo other's doc strings.
Report and Diagnostic are only publicly accessible at the top level, as shown in the example, but are privately defined at miette::eyreish::Report and miette::protocol::Diagnostic, respectively.
If I view the generated docs, clicking a link takes me to a page that redirects to the correct page, so these links are not actually "broken".
The text was updated successfully, but these errors were encountered:
Did you add a custom struct that derives Diagnostic, as in the example snippet? That's where the error occurs, in the docs for the Diagnostic trait implementation on MyDiagnostic.
Am on mobile, but I can double check with latest cargo-deadlinks in a little bit.
use miette::{Diagnostic,Report};use std::error::Error;use std::fmt;/// This implements [`Diagnostic`] and contains a [`Report`].#[derive(Diagnostic,Debug)]structMyDiagnostic{#[diagnostic_source]source:Report,}implErrorforMyDiagnostic{}impl fmt::DisplayforMyDiagnostic{fnfmt(&self,f:&mut fmt::Formatter) -> fmt::Result{todo!()}}
I ran into this with
miette::Report
andmiette::Diagnostic
, but I believe it is not specific to justmiette
.I have a
struct
defined something like this (simplified):When running
cargo deadlinks --check-intra-doc-links
,Report
andDiagnostic
get flagged, as well asDiagnostic::labels
andDiagnostic::source_code
, where the latter two are linked in echo other's doc strings.Report
andDiagnostic
are only publicly accessible at the top level, as shown in the example, but are privately defined atmiette::eyreish::Report
andmiette::protocol::Diagnostic
, respectively.If I view the generated docs, clicking a link takes me to a page that redirects to the correct page, so these links are not actually "broken".
The text was updated successfully, but these errors were encountered: