Skip to content

Commit

Permalink
intra-doc links
Browse files Browse the repository at this point in the history
  • Loading branch information
lcnr committed Jan 18, 2022
1 parent cbc6d35 commit 217458b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/rustc_middle/src/ty/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1210,7 +1210,7 @@ impl<'tcx> TyCtxt<'tcx> {
self.mk_ty(Error(DelaySpanBugEmitted(())))
}

/// Like [`ty_error`] but for constants.
/// Like [TyCtxt::ty_error] but for constants.
#[track_caller]
pub fn const_error(self, ty: Ty<'tcx>) -> &'tcx Const<'tcx> {
self.const_error_with_message(
Expand All @@ -1220,7 +1220,7 @@ impl<'tcx> TyCtxt<'tcx> {
)
}

/// Like [`ty_error_with_message`] but for constants.
/// Like [TyCtxt::ty_error_with_message] but for constants.
#[track_caller]
pub fn const_error_with_message<S: Into<MultiSpan>>(
self,
Expand Down

0 comments on commit 217458b

Please sign in to comment.