mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-15 05:26:47 +00:00
intra-doc links
This commit is contained in:
parent
cbc6d35a57
commit
217458b9da
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user