From 93486180d99e6216941f72a1a3deff25545a181b Mon Sep 17 00:00:00 2001 From: York Xiang Date: Tue, 26 Apr 2016 13:36:18 +0800 Subject: [PATCH] Improve error message about regions of function body --- src/librustc/infer/error_reporting.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc/infer/error_reporting.rs b/src/librustc/infer/error_reporting.rs index a7553f4eb1f..1969c614146 100644 --- a/src/librustc/infer/error_reporting.rs +++ b/src/librustc/infer/error_reporting.rs @@ -158,7 +158,7 @@ impl<'tcx> TyCtxt<'tcx> { "scope of call-site for function" } region::CodeExtentData::ParameterScope { .. } => { - "scope of parameters for function" + "scope of function body" } region::CodeExtentData::DestructionScope(_) => { new_string = format!("destruction scope surrounding {}", tag);