Improve error message about regions of function body

This commit is contained in:
York Xiang 2016-04-26 13:36:18 +08:00 committed by 向越可
parent 2174bd97c1
commit 93486180d9

View File

@ -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);