about summary refs log tree commit diff
path: root/src/librustc/infer
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-07-27 13:01:48 +0000
committerbors <bors@rust-lang.org>2018-07-27 13:01:48 +0000
commitb6cbc1e1479d1ac5e66565d3b3e2cc54f767d2a0 (patch)
tree5f1edc4fd5141ec935c2155ea94b4a6a2c4d99b3 /src/librustc/infer
parent6998b369faf3daf849f538d636bac9eda659fa5a (diff)
parent2e4224a9983cacf6ef1a2787c0084d743abb27e1 (diff)
downloadrust-b6cbc1e1479d1ac5e66565d3b3e2cc54f767d2a0.tar.gz
rust-b6cbc1e1479d1ac5e66565d3b3e2cc54f767d2a0.zip
Auto merge of #52648 - davidtwco:issue-52533, r=nikomatsakis
[nll] improve the "fully elaborated type" case in region errors

Fixes #52533.

r? @nikomatsakis
Diffstat (limited to 'src/librustc/infer')
-rw-r--r--src/librustc/infer/error_reporting/need_type_info.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/infer/error_reporting/need_type_info.rs b/src/librustc/infer/error_reporting/need_type_info.rs
index dbcb63addb8..693219ec4b0 100644
--- a/src/librustc/infer/error_reporting/need_type_info.rs
+++ b/src/librustc/infer/error_reporting/need_type_info.rs
@@ -74,7 +74,7 @@ impl<'a, 'gcx, 'tcx> Visitor<'gcx> for FindLocalByTypeVisitor<'a, 'gcx, 'tcx> {
 
 
 impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
-    fn extract_type_name(&self, ty: &'a Ty<'tcx>) -> String {
+    pub fn extract_type_name(&self, ty: &'a Ty<'tcx>) -> String {
         if let ty::TyInfer(ty::TyVar(ty_vid)) = (*ty).sty {
             let ty_vars = self.type_variables.borrow();
             if let TypeVariableOrigin::TypeParameterDefinition(_, name) =