tamer: xir::parse: Correct doc xrefs

These weren't causing problems until they were output as part of NIR (in a
separate module).

NIR is about to be committed.

DEV-7145
main
Mike Gerwitz 2022-08-29 15:26:40 -04:00
parent 638a9c483b
commit c420ab2730
2 changed files with 7 additions and 1 deletions

View File

@ -255,7 +255,9 @@ macro_rules! attr_parse {
#[doc=concat!("[`", stringify!($struct_name), "`].")]
///
/// This object is exposed for recovery and error reporting on
/// [`AttrParseError::MissingRequired`].
/// [`AttrParseError::MissingRequired`][MissingRequired].
///
/// [MissingRequired]: crate::xir::parse::AttrParseError::MissingRequired
#[derive(Debug, PartialEq, Eq)]
$($vis)? struct $state_name {
#[doc(hidden)]
@ -371,6 +373,8 @@ macro_rules! attr_parse {
impl std::fmt::Display for $state_name {
/// Additional error context shown in diagnostic messages for
/// certain variants of [`ParseError`].
///
/// [`ParseError`]: crate::parse::ParseError
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
use crate::fmt::{DisplayWrapper, TtQuote};

View File

@ -1725,6 +1725,8 @@ macro_rules! ele_parse {
impl $super {
/// Whether the inner (active child) [`ParseState`] is in an
/// accepting state.
///
/// [`ParseState`]: crate::parse::ParseState
fn is_inner_accepting(
&self,
ctx: &<Self as crate::parse::ParseState>::Context