mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 10:13:54 +00:00
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