Improve error message about regions of function body
This commit is contained in:
parent
2174bd97c1
commit
93486180d9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user