Skip to content

Commit

Permalink
Rollup merge of rust-lang#33212 - bombless:scope-of-function-body, r=…
Browse files Browse the repository at this point in the history
…nikomatsakis

Improve error message about regions of function body

"scope of parameters for functions" is harder for me to read than "scope of function body", I hope others feel the same, as in <https://play.rust-lang.org/?gist=b4df68b395b807698bd2ba98cf3d5ce3&version=stable&backtrace=0&run=1>
 Thank @Aatch for the help :)
  • Loading branch information
steveklabnik committed Apr 28, 2016
2 parents c72a771 + 9348618 commit 7c2a985
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc/infer/error_reporting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,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);
Expand Down

0 comments on commit 7c2a985

Please sign in to comment.