Skip to content

Commit deda49e

Browse files
committed
Fix up doc links
1 parent 6ce1c89 commit deda49e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_middle/src/ty/consts.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ impl<'tcx> Const<'tcx> {
125125
Const::new(tcx, ty::ConstKind::Error(e), ty)
126126
}
127127

128-
/// Like [TyCtxt::ty_error] but for constants.
128+
/// Like [Ty::new_error] but for constants.
129129
#[track_caller]
130130
pub fn new_misc_error(tcx: TyCtxt<'tcx>, ty: Ty<'tcx>) -> Const<'tcx> {
131131
Const::new_error_with_message(
@@ -136,7 +136,7 @@ impl<'tcx> Const<'tcx> {
136136
)
137137
}
138138

139-
/// Like [TyCtxt::ty_error_with_message] but for constants.
139+
/// Like [Ty::new_error_with_message] but for constants.
140140
#[track_caller]
141141
pub fn new_error_with_message<S: Into<MultiSpan>>(
142142
tcx: TyCtxt<'tcx>,

0 commit comments

Comments
 (0)