From 217458b9dab4578147090203a21acde9423785e7 Mon Sep 17 00:00:00 2001 From: lcnr Date: Mon, 17 Jan 2022 07:54:56 +0100 Subject: [PATCH] intra-doc links --- compiler/rustc_middle/src/ty/context.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/rustc_middle/src/ty/context.rs b/compiler/rustc_middle/src/ty/context.rs index 6eb3653dd7baa..8d591d6781235 100644 --- a/compiler/rustc_middle/src/ty/context.rs +++ b/compiler/rustc_middle/src/ty/context.rs @@ -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>( self,