We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ce1c89 commit deda49eCopy full SHA for deda49e
compiler/rustc_middle/src/ty/consts.rs
@@ -125,7 +125,7 @@ impl<'tcx> Const<'tcx> {
125
Const::new(tcx, ty::ConstKind::Error(e), ty)
126
}
127
128
- /// Like [TyCtxt::ty_error] but for constants.
+ /// Like [Ty::new_error] but for constants.
129
#[track_caller]
130
pub fn new_misc_error(tcx: TyCtxt<'tcx>, ty: Ty<'tcx>) -> Const<'tcx> {
131
Const::new_error_with_message(
@@ -136,7 +136,7 @@ impl<'tcx> Const<'tcx> {
136
)
137
138
139
- /// Like [TyCtxt::ty_error_with_message] but for constants.
+ /// Like [Ty::new_error_with_message] but for constants.
140
141
pub fn new_error_with_message<S: Into<MultiSpan>>(
142
tcx: TyCtxt<'tcx>,
0 commit comments