Skip to content

Commit ff0fb9d

Browse files
Remove unused methods
1 parent 05ac25a commit ff0fb9d

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

src/librustc/infer/mod.rs

-22
Original file line numberDiff line numberDiff line change
@@ -1191,28 +1191,6 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
11911191
// types using one of these methods, and should not call span_err directly for such
11921192
// errors.
11931193

1194-
pub fn type_error_message<M>(&self,
1195-
sp: Span,
1196-
mk_msg: M,
1197-
actual_ty: Ty<'tcx>)
1198-
where M: FnOnce(String) -> String,
1199-
{
1200-
self.type_error_struct(sp, mk_msg, actual_ty).emit();
1201-
}
1202-
1203-
// FIXME: this results in errors without an error code. Deprecate?
1204-
pub fn type_error_struct<M>(&self,
1205-
sp: Span,
1206-
mk_msg: M,
1207-
actual_ty: Ty<'tcx>)
1208-
-> DiagnosticBuilder<'tcx>
1209-
where M: FnOnce(String) -> String,
1210-
{
1211-
self.type_error_struct_with_diag(sp, |actual_ty| {
1212-
self.tcx.sess.struct_span_err(sp, &mk_msg(actual_ty))
1213-
}, actual_ty)
1214-
}
1215-
12161194
pub fn type_error_struct_with_diag<M>(&self,
12171195
sp: Span,
12181196
mk_diag: M,

0 commit comments

Comments
 (0)