From deda49e7b7df44631720fa94f27a3a430772cd77 Mon Sep 17 00:00:00 2001 From: Oli Scherer Date: Thu, 6 Jul 2023 07:32:08 +0000 Subject: [PATCH] Fix up doc links --- compiler/rustc_middle/src/ty/consts.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/rustc_middle/src/ty/consts.rs b/compiler/rustc_middle/src/ty/consts.rs index 78943cb0ddb..1cbfe99f87f 100644 --- a/compiler/rustc_middle/src/ty/consts.rs +++ b/compiler/rustc_middle/src/ty/consts.rs @@ -125,7 +125,7 @@ impl<'tcx> Const<'tcx> { Const::new(tcx, ty::ConstKind::Error(e), ty) } - /// Like [TyCtxt::ty_error] but for constants. + /// Like [Ty::new_error] but for constants. #[track_caller] pub fn new_misc_error(tcx: TyCtxt<'tcx>, ty: Ty<'tcx>) -> Const<'tcx> { Const::new_error_with_message( @@ -136,7 +136,7 @@ impl<'tcx> Const<'tcx> { ) } - /// Like [TyCtxt::ty_error_with_message] but for constants. + /// Like [Ty::new_error_with_message] but for constants. #[track_caller] pub fn new_error_with_message>( tcx: TyCtxt<'tcx>,