We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbc6d35 commit 217458bCopy full SHA for 217458b
compiler/rustc_middle/src/ty/context.rs
@@ -1210,7 +1210,7 @@ impl<'tcx> TyCtxt<'tcx> {
1210
self.mk_ty(Error(DelaySpanBugEmitted(())))
1211
}
1212
1213
- /// Like [`ty_error`] but for constants.
+ /// Like [TyCtxt::ty_error] but for constants.
1214
#[track_caller]
1215
pub fn const_error(self, ty: Ty<'tcx>) -> &'tcx Const<'tcx> {
1216
self.const_error_with_message(
@@ -1220,7 +1220,7 @@ impl<'tcx> TyCtxt<'tcx> {
1220
)
1221
1222
1223
- /// Like [`ty_error_with_message`] but for constants.
+ /// Like [TyCtxt::ty_error_with_message] but for constants.
1224
1225
pub fn const_error_with_message<S: Into<MultiSpan>>(
1226
self,
0 commit comments