about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-07-16 17:19:08 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-07-16 17:20:18 +0530
commit69e6dc0444bb62a474c8c5f7490c660f9d88c172 (patch)
treed2e449ba6cff5c4a835df9ebb3aebb230df8b1ae
parent7c202a39c156d9a51c3dd1ebe34ecaaea188a175 (diff)
Fix diagnostics name clash
-rw-r--r--src/librustc_typeck/check/mod.rs2
-rw-r--r--src/librustc_typeck/diagnostics.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_typeck/check/mod.rs b/src/librustc_typeck/check/mod.rs
index a2fee091689..9042cedccc8 100644
--- a/src/librustc_typeck/check/mod.rs
+++ b/src/librustc_typeck/check/mod.rs
@@ -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);
                 }
diff --git a/src/librustc_typeck/diagnostics.rs b/src/librustc_typeck/diagnostics.rs
index 636a8aeb544..2069e3098e6 100644
--- a/src/librustc_typeck/diagnostics.rs
+++ b/src/librustc_typeck/diagnostics.rs
@@ -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
 }