Update E0513 to new error format
This commit is contained in:
parent
1e4e81c320
commit
96a0f06b2f
|
@ -1526,9 +1526,11 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
|
|||
match self.locals.borrow().get(&nid) {
|
||||
Some(&t) => t,
|
||||
None => {
|
||||
span_err!(self.tcx.sess, span, E0513,
|
||||
"no type for local variable {}",
|
||||
nid);
|
||||
struct_span_err!(self.tcx.sess, span, E0513,
|
||||
"no type for local variable {}",
|
||||
self.tcx.map.node_to_string(nid))
|
||||
.span_label(span, &"no type for variable")
|
||||
.emit();
|
||||
self.tcx.types.err
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue