macros: fix documentation link for diag derive
Signed-off-by: David Wood <david.wood@huawei.com>
This commit is contained in:
parent
54f79babae
commit
84ec77769f
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ use synstructure::Structure;
|
|||
/// ```
|
||||
///
|
||||
/// See rustc dev guide for more examples on using the `#[derive(SessionDiagnostic)]`:
|
||||
/// <https://rustc-dev-guide.rust-lang.org/diagnostics/sessiondiagnostic.html>
|
||||
/// <https://rustc-dev-guide.rust-lang.org/diagnostics/diagnostic-structs.html>
|
||||
pub fn session_diagnostic_derive(s: Structure<'_>) -> TokenStream {
|
||||
// Names for the diagnostic we build and the session we build it from.
|
||||
let diag = format_ident!("diag");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue