Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix diagnostics name clash
  • Loading branch information
Manishearth committed Jul 16, 2015
1 parent 7c202a3 commit 69e6dc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/librustc_typeck/check/mod.rs
Expand Up @@ -3427,7 +3427,7 @@ fn check_expr_with_unifier<'a, 'tcx, F>(fcx: &FnCtxt<'a, 'tcx>,
let struct_id = match def {
def::DefVariant(enum_id, variant_id, true) => {
if let &Some(ref base_expr) = base_expr {
span_err!(tcx.sess, base_expr.span, E0401,
span_err!(tcx.sess, base_expr.span, E0436,
"functional record update syntax requires a struct");
fcx.write_error(base_expr.id);
}
Expand Down
2 changes: 1 addition & 1 deletion src/librustc_typeck/diagnostics.rs
Expand Up @@ -2211,5 +2211,5 @@ register_diagnostics! {
// type because its default value `{}` references the type `Self`"
E0399, // trait items need to be implemented because the associated
// type `{}` was overridden
E0401 // functional record update requires a struct
E0436 // functional record update requires a struct
}

0 comments on commit 69e6dc0

Please sign in to comment.