diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2017-06-24 23:24:07 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2017-06-29 09:48:17 +0200 |
| commit | ff0fb9d906444aa054c6203506350cf752e5bea3 (patch) | |
| tree | 859c80b4bd19913ffdd51bcf1de194fcdebfdd76 | |
| parent | 05ac25affa2f9dda6c6e9e8c5005736e98391c44 (diff) | |
| download | rust-ff0fb9d906444aa054c6203506350cf752e5bea3.tar.gz rust-ff0fb9d906444aa054c6203506350cf752e5bea3.zip | |
Remove unused methods
| -rw-r--r-- | src/librustc/infer/mod.rs | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/librustc/infer/mod.rs b/src/librustc/infer/mod.rs index d5020b12ee0..9500e4a3604 100644 --- a/src/librustc/infer/mod.rs +++ b/src/librustc/infer/mod.rs @@ -1191,28 +1191,6 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> { // types using one of these methods, and should not call span_err directly for such // errors. - pub fn type_error_message<M>(&self, - sp: Span, - mk_msg: M, - actual_ty: Ty<'tcx>) - where M: FnOnce(String) -> String, - { - self.type_error_struct(sp, mk_msg, actual_ty).emit(); - } - - // FIXME: this results in errors without an error code. Deprecate? - pub fn type_error_struct<M>(&self, - sp: Span, - mk_msg: M, - actual_ty: Ty<'tcx>) - -> DiagnosticBuilder<'tcx> - where M: FnOnce(String) -> String, - { - self.type_error_struct_with_diag(sp, |actual_ty| { - self.tcx.sess.struct_span_err(sp, &mk_msg(actual_ty)) - }, actual_ty) - } - pub fn type_error_struct_with_diag<M>(&self, sp: Span, mk_diag: M, |
