]> git.lizzy.rs Git - rust.git/commitdiff
Improve error message about regions of function body
authorYork Xiang <bombless@126.com>
Tue, 26 Apr 2016 05:36:18 +0000 (13:36 +0800)
committer向越可 <xiangyk@dcxs100.com>
Tue, 26 Apr 2016 05:37:03 +0000 (13:37 +0800)
src/librustc/infer/error_reporting.rs

index a7553f4eb1f1cbed2a7dec545052f411789eb365..1969c614146fbbc9c44d8ac57362f061839ac03b 100644 (file)
@@ -158,7 +158,7 @@ fn explain_span(tcx: &TyCtxt, heading: &str, span: Span)
                         "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);