Skip to content

Commit 69e6dc0

Browse files
committed
Fix diagnostics name clash
1 parent 7c202a3 commit 69e6dc0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustc_typeck/check/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3427,7 +3427,7 @@ fn check_expr_with_unifier<'a, 'tcx, F>(fcx: &FnCtxt<'a, 'tcx>,
34273427
let struct_id = match def {
34283428
def::DefVariant(enum_id, variant_id, true) => {
34293429
if let &Some(ref base_expr) = base_expr {
3430-
span_err!(tcx.sess, base_expr.span, E0401,
3430+
span_err!(tcx.sess, base_expr.span, E0436,
34313431
"functional record update syntax requires a struct");
34323432
fcx.write_error(base_expr.id);
34333433
}

src/librustc_typeck/diagnostics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2211,5 +2211,5 @@ register_diagnostics! {
22112211
// type because its default value `{}` references the type `Self`"
22122212
E0399, // trait items need to be implemented because the associated
22132213
// type `{}` was overridden
2214-
E0401 // functional record update requires a struct
2214+
E0436 // functional record update requires a struct
22152215
}

0 commit comments

Comments
 (0)