Skip to content

Commit

Permalink
Fix up doc links
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Jul 6, 2023
1 parent 6ce1c89 commit deda49e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/rustc_middle/src/ty/consts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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<S: Into<MultiSpan>>(
tcx: TyCtxt<'tcx>,
Expand Down

0 comments on commit deda49e

Please sign in to comment.