mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-02 15:56:09 +03:00
Auto merge of #28555 - GuillaumeGomez:error_codes, r=Manishearth
This commit is contained in:
@@ -1308,9 +1308,9 @@ pub fn local_ty(&self, span: Span, nid: ast::NodeId) -> Ty<'tcx> {
|
||||
match self.inh.locals.borrow().get(&nid) {
|
||||
Some(&t) => t,
|
||||
None => {
|
||||
self.tcx().sess.span_err(
|
||||
span,
|
||||
&format!("no type for local variable {}", nid));
|
||||
span_err!(self.tcx().sess, span, E0513,
|
||||
"no type for local variable {}",
|
||||
nid);
|
||||
self.tcx().types.err
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3354,5 +3354,6 @@ struct i8x16(i8, i8, i8, i8, i8, i8, i8, i8,
|
||||
// type because its default value `{}` references the type `Self`"
|
||||
E0399, // trait items need to be implemented because the associated
|
||||
// type `{}` was overridden
|
||||
E0436, // functional record update requires a struct
|
||||
E0436, // functional record update requires a struct
|
||||
E0513, // no type for local variable ..
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user