We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5bf6d1 commit 01f2624Copy full SHA for 01f2624
src/librustc/util/ppaux.rs
@@ -85,6 +85,10 @@ fn explain_region_and_span(cx: ctxt, region: ty::Region)
85
Some(ast_map::node_stmt(stmt)) => {
86
explain_span(cx, "statement", stmt.span)
87
}
88
+ Some(ast_map::node_item(it, _)) if (match it.node {
89
+ ast::item_fn(*) => true, _ => false}) => {
90
+ explain_span(cx, "function body", it.span)
91
+ }
92
Some(_) | None => {
93
// this really should not happen
94
(fmt!("unknown scope: %d. Please report a bug.", node_id),
0 commit comments