intra-doc links

This commit is contained in:
lcnr 2022-01-17 07:54:56 +01:00
parent cbc6d35a57
commit 217458b9da

View File

@ -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(
@ -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,