Skip to content

Commit 381de3d

Browse files
committed
---
yaml --- r: 228414 b: refs/heads/try c: 69e6dc0 h: refs/heads/master v: v3
1 parent 46247eb commit 381de3d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: aca2057ed5fb7af3f8905b2bc01f72fa001c35c8
33
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4-
refs/heads/try: 7c202a39c156d9a51c3dd1ebe34ecaaea188a175
4+
refs/heads/try: 69e6dc0444bb62a474c8c5f7490c660f9d88c172
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/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
}

branches/try/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)